![]() |
Public API Reference |
#include <math3d_d.h>
Static Public Methods | |
double | PointPoint (const csDVector3 &p1, const csDVector3 &p2) |
Returns the squared distance between two points. More... | |
double | PointLine (const csDVector3 &p, const csDVector3 &l1, const csDVector3 &l2) |
Returns the squared distance between a point and a line. More... | |
double | PointPlane (const csDVector3 &p, const csDPlane &plane) |
Returns the squared distance between a point and a normalized plane. More... | |
double | PointPoly (const csDVector3 &p, csDVector3 *V, int n, const csDPlane &plane, double 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 567 of file math3d_d.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 579 of file math3d_d.h. References csDPlane::Classify. |
|
Returns the squared distance between two points.
Definition at line 571 of file math3d_d.h. References csDVector3::x, csDVector3::y, and csDVector3::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. |