|
Vector.cc File Reference#include <assert.h>
#include <stdio.h>
#include "Error.hh"
#include "Vector.hh"
|
Functions |
GzVector | GzVectorZero () |
GzVector | GzVectorSet (double x, double y, double z) |
GzVector | GzVectorSetQuatern (GzQuatern q) |
GzVector | GzVectorAdd (GzVector b, GzVector a) |
GzVector | GzVectorSub (GzVector b, GzVector a) |
GzVector | GzVectorMul (double s, GzVector a) |
double | GzVectorMag (GzVector a) |
GzVector | GzVectorUnit (GzVector a) |
GzVector | GzVectorCross (GzVector a, GzVector b) |
double | GzVectorDot (GzVector a, GzVector b) |
bool | GzVectorFinite (GzVector a) |
GzQuatern | GzQuaternSet (double u, double x, double y, double z) |
GzQuatern | GzQuaternSetVector (GzVector v) |
GzQuatern | GzQuaternIdent () |
GzQuatern | GzQuaternFromAxis (double x, double y, double z, double a) |
GzQuatern | GzQuaternToAxis (GzQuatern a) |
GzQuatern | GzQuaternFromEuler (double roll, double pitch, double yaw) |
GzVector | GzQuaternToEuler (GzQuatern q) |
GzQuatern | GzQuaternInverse (GzQuatern a) |
GzQuatern | GzQuaternNormal (GzQuatern a) |
GzQuatern | GzQuaternMul (GzQuatern a, GzQuatern b) |
GzQuatern | GzQuaternScale (double s, GzQuatern a) |
bool | GzQuaternFinite (GzQuatern a) |
GzPose | GzPoseSet (GzVector pos, GzQuatern rot) |
GzPose | GzPosePointAt (GzVector pos, GzVector at, GzVector up) |
| Create a pose from a triplet of vectors.
|
bool | GzPoseFinite (GzPose a) |
GzPose | GzCoordPoseAdd (GzPose bpose, GzPose apose) |
GzPose | GzCoordPoseSub (GzPose bpose, GzPose apose) |
GzPose | GzCoordPoseSolve (GzPose ba, GzPose b) |
GzVector | GzCoordPositionAdd (GzVector bpos, GzVector apos, GzQuatern arot) |
GzVector | GzCoordPositionSub (GzVector bpos, GzVector apos, GzQuatern arot) |
GzQuatern | GzCoordRotationAdd (GzQuatern r, GzQuatern a) |
GzQuatern | GzCoordRotationSub (GzQuatern b, GzQuatern a) |
GzHomo | GzHomoFromQuatern (GzQuatern q) |
| Compute a homogeneous transform matrix from a Quatern.
|
GzHomo | GzHomoInverse (GzHomo a) |
| Compute the inverse of the given transform matrix.
|
GzVector | GzHomoMul (GzHomo m, GzVector a) |
| Apply a homogeneous transform.
|
Function Documentation
GzVector GzVectorSet |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
|
|
GzQuatern GzQuaternSet |
( |
double |
u, |
|
|
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
|
|
GzQuatern GzQuaternFromAxis |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z, |
|
|
double |
a |
|
) |
|
|
GzQuatern GzQuaternFromEuler |
( |
double |
roll, |
|
|
double |
pitch, |
|
|
double |
yaw |
|
) |
|
|
|
Create a pose from a triplet of vectors.
- Parameters:
-
| pos | specifies the object position. |
| at | specifies the point to look at (x axis). |
| up | Specifies the "up" direction (z axis). |
|
bool GzPoseFinite |
( |
GzPose |
a |
) |
|
|
|
Compute a homogeneous transform matrix from a Quatern.
|
|
Compute the inverse of the given transform matrix.
|
|
Apply a homogeneous transform.
Apply a homogeneous transform |
|