Nilorea Library

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Macros Groups
Data Structures | Macros | Typedefs | Functions
n_3d.h File Reference
`#include "n_log.h"`
`#include "n_common.h"`
`#include <sys/time.h>`
Include dependency graph for n_3d.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures

struct | PHYSICS

## Macros

#define | MOVE_STOPPED 0
#define | MOVE_INTER 1
#define | MOVE_SIMU 2
#define | VECTOR3D_DONT_INTERSECT -2
#define | VECTOR3D_COLLINEAR -1
#define | VECTOR3D_DO_INTERSECT 0
#define | VECTOR3D_SET(VECTOR, X, Y, Z)
#define | copy_point(__src_, __dst_) memcpy( __dst_ , __src_ , sizeof( VECTOR3D ) );

## Typedefs

typedef double | VECTOR3D [3]
typedef struct PHYSICS | PHYSICS

## Functions

double | distance (VECTOR3D p1, VECTOR3D p2)
| compute the distance between two VECTOR3D points More...
int | update_physics_position_nb (PHYSICS *object, int it, double delta_t)
| Update object position componant. More...
int | update_physics_position_reverse_nb (PHYSICS *object, int it, double delta_t)
| Update object position componant, reversed. More...
int | update_physics_position (PHYSICS *object, double delta_t)
| Update object position, reversed. Wrapper of update_physics_position_reverse_nb to update each componants. More...
int | update_physics_position_reverse (PHYSICS *object, double delta_t)
| Update object position, reversed. Wrapper of update_physics_position_reverse_nb to update each componants. More...
int | vector_intersect (VECTOR3D p0, VECTOR3D p1, VECTOR3D p2, VECTOR3D p3, VECTOR3D *px)
| Compute if two vectors are intersecting or not. More...

## Detailed Description

3D helpers, vector and camera

Author
  Castagnier Mickael

Version
  1.0

Date
  30/04/2014

Definition in file n_3d.h.