![]() |
Public API Reference |
#include <math3d.h>
Static Public Methods | |
float | PointPoint (const csVector3 &p1, const csVector3 &p2) |
Returns the squared distance between two points. More... | |
float | PointLine (const csVector3 &p, const csVector3 &l1, const csVector3 &l2) |
Returns the squared distance between a point and a line. More... | |
float | PointPlane (const csVector3 &p, const csPlane3 &plane) |
Returns the squared distance between a point and a normalized plane. More... | |
float | PointPoly (const csVector3 &p, csVector3 *V, int n, const csPlane3 &plane, float sqdist=-1) |
Returns the squared distance between a point and a polygon. More... |
This is a static class and contains only static member functions.
Definition at line 230 of file math3d.h.
|
Returns the squared distance between a point and a line.
|
|
Returns the squared distance between a point and a normalized plane.
Definition at line 242 of file math3d.h. References csPlane3::Classify. |
|
Returns the squared distance between two points.
Definition at line 234 of file math3d.h. References csVector3::x, csVector3::y, and csVector3::z. |
|
Returns the squared distance between a point and a polygon. If sqdist is >= 0, then it is used as the pre-calculated point to plane distance. V is an array of vertices, n is the number of vertices, and plane is the polygon plane. |