![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
3D helpers, vector More...
Go to the source code of this file.
Functions | |
double | distance (VECTOR3D *p1, VECTOR3D *p2) |
compute the distance between two VECTOR3D points | |
static int | same_sign (double a, double b) |
Quickly check if two walues are the same sign or not. | |
int | update_physics_position (PHYSICS *object, double delta_t) |
Update object position, reversed. | |
int | update_physics_position_nb (PHYSICS *object, int it, double delta_t) |
Update object position component. | |
int | update_physics_position_reverse (PHYSICS *object, double delta_t) |
Update object position, reversed. | |
int | update_physics_position_reverse_nb (PHYSICS *object, int it, double delta_t) |
Update object position component, reversed. | |
double | vector_angle_between (VECTOR3D *vec1, VECTOR3D *vec2) |
Compute angle between two VECTOR3D. | |
double | vector_dot_product (VECTOR3D *vec1, VECTOR3D *vec2) |
Compute the dot product of two VECTOR3D. | |
int | vector_intersect (VECTOR3D *p1, VECTOR3D *p2, VECTOR3D *p3, VECTOR3D *p4, VECTOR3D *px) |
Compute if two vectors are intersecting or not. | |
double | vector_normalize (VECTOR3D *vec) |
Return the normalized value of vec. | |
|
static |
Quickly check if two walues are the same sign or not.
a | first value |
b | second value |
Definition at line 99 of file n_3d.c.
Referenced by vector_intersect().