Synopsis
gboolean g3d_vector_normal (gfloat ax,
gfloat ay,
gfloat az,
gfloat bx,
gfloat by,
gfloat bz,
gfloat *nx,
gfloat *ny,
gfloat *nz);
gboolean g3d_vector_unify (gfloat *nx,
gfloat *ny,
gfloat *nz);
gboolean g3d_vector_transform (gfloat *x,
gfloat *y,
gfloat *z,
gfloat *matrix);
Details
g3d_vector_normal ()
gboolean g3d_vector_normal (gfloat ax,
gfloat ay,
gfloat az,
gfloat bx,
gfloat by,
gfloat bz,
gfloat *nx,
gfloat *ny,
gfloat *nz);
calculate the normal from a plane defined by two vectors
ax : |
x component first vector
|
ay : |
y component first vector
|
az : |
z component first vector
|
bx : |
x component second vector
|
by : |
y component second vector
|
bz : |
z component second vector
|
nx : |
x component resulting normal
|
ny : |
y component resulting normal
|
nz : |
z component resulting normal
|
Returns : |
TRUE on success, FALSE else
|
g3d_vector_unify ()
gboolean g3d_vector_unify (gfloat *nx,
gfloat *ny,
gfloat *nz);
g3d_vector_transform ()
gboolean g3d_vector_transform (gfloat *x,
gfloat *y,
gfloat *z,
gfloat *matrix);
x : |
|
y : |
|
z : |
|
matrix : |
|
Returns : |
|