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) |
GzQuatern | GzQuaternFromHomo (GzHomo a) |
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) |
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) |
GzHomo | GzHomoInverse (GzHomo a) |
GzVector | GzHomoMul (GzHomo m, GzVector a) |
Function Documentation
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 | |||
) |
GzQuatern GzQuaternFromHomo | ( | GzHomo | a | ) |
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 | |||
) |
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 | ) |
GzHomo GzHomoInverse | ( | GzHomo | a | ) |
GzVector GzHomoMul | ( | GzHomo | m, | |
GzVector | a | |||
) |
Apply a homogeneous transform