class csMath3 Various assorted 3D mathematical functions
| | Area3 (const csVector3 &a, const csVector3 &b, const csVector3 &c) Compute twice the signed area of triangle composed by three points |
| | Between (const csVector3& v1, const csVector3& v2, csVector3& v, float pct, float wid) Calculates a vector lying a specified distance between two other vectors |
| | CalcNormal (csVector3& norm, const csVector3& v, const csVector3& u) Compute the normal given two (u,v) vectors |
| | CalcNormal (csVector3& norm, const csVector3& v1, const csVector3& v2, const csVector3& v3) Calculate a plane normal given three vectors |
| | CalcPlane (const csVector3& v1, const csVector3& v2, const csVector3& v3, csVector3& normal, float& D) Calculate the plane equation given three vectors |
| | PlanesClose (const csPlane& p1, const csPlane& p2) Check if two planes are close together |
| | PlanesEqual (const csPlane& p1, const csPlane& p2) Check if two planes are almost equal |
| | SetMinMax (const csVector3& v, csVector3& min, csVector3& max) Set the min and max vector if this vector exceeds their current limits |
| | Visible (const csVector3& p, const csPlane& pl) Check if the plane is visible from the given point |
| | Visible (const csVector3& p, const csVector3& t1, const csVector3& t2, const csVector3& t3) Tests if the front face of a triangle is visible from the given point |
| | WhichSide3D (const csVector3& p, const csVector3& v1, const csVector3& v2) Tests which side of a plane the given 3D point is on |
Various assorted 3D mathematical functions. This is a static class and contains only static member functions.
static bool Visible(const csVector3& p, const csVector3& t1, const csVector3& t2, const csVector3& t3)
static bool Visible(const csVector3& p, const csPlane& pl)
static void Between(const csVector3& v1, const csVector3& v2, csVector3& v, float pct, float wid)
static void SetMinMax(const csVector3& v, csVector3& min, csVector3& max)
inline static float Area3(const csVector3 &a, const csVector3 &b, const csVector3 &c)
inline static void CalcNormal(csVector3& norm, const csVector3& v1, const csVector3& v2, const csVector3& v3)
static void CalcNormal(csVector3& norm, const csVector3& v, const csVector3& u)
static void CalcPlane(const csVector3& v1, const csVector3& v2, const csVector3& v3, csVector3& normal, float& D)
static bool PlanesEqual(const csPlane& p1, const csPlane& p2)
static bool PlanesClose(const csPlane& p1, const csPlane& p2)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de