#include <Geometry.h>
Static Public Member Functions | |
static Point | PlaneIntersection (const Plane &p1, const Plane &p2, const Plane &p3) |
static void | InvertHomogenousMatrix (double *src, double *dest) |
static void | InvertHomogenousMatrix (float *src, float *dest) |
static void | MatrixMultiply (double *m1, double *m2, double *dest) |
static void | VectorMultiply (float *m, const Vector &vect, Vector &res) |
static void | VectorNormalize (Vector &vect) |
static float | VectorLength (Vector &vect) |
static float | EnclosingAngle (Vector &v1, Vector &v2) |
static Vector | CrossProduct (const Vector &v1, const Vector &v2) |
static float | ScalarProduct (const Vector &v1, const Vector &v2) |
Private Member Functions | |
Geometry () |
This class cannot be instantiated. Its static routines, however, provide some basic geometrical operations.
Definition at line 61 of file Geometry.h.
|
Hide the default constructor. |
|
Calculates the cross product of 2 vectors.
Definition at line 32 of file Geomety.cpp. |
|
Computes the enclosing angle between two vectors in radians.
Definition at line 139 of file Geomety.cpp. |
|
Inverts a homogenous matrix. Matrices that only consist of a sequence of rotations and translations are always homogenous. This routine operates on single precision values.
Definition at line 71 of file Geomety.cpp. |
|
Inverts a homogenous matrix. Matrices that only consist of a sequence of rotations and translations are always homogenous. This routine operates on double precision values.
Definition at line 48 of file Geomety.cpp. |
|
Multipies two matrices. This routine operates on double precision values.
Definition at line 94 of file Geomety.cpp. |
|
Returns the intersection point of 3 planes or (0,0,0) if any two of them are parallel.
Definition at line 3 of file Geomety.cpp. |
|
Calculates the scalar product of 2 vectors.
Definition at line 43 of file Geomety.cpp. |
|
Returns the length of any given vector.
Definition at line 134 of file Geomety.cpp. |
|
Multipies a matrix with a vector.
Definition at line 114 of file Geomety.cpp. |
|
Normalizes a vector. If the vector is of length 0, it will stay that way.
Definition at line 121 of file Geomety.cpp. |