![]() |
Public API Reference |
#include <math3d_d.h>
Static Public Methods | |
void | Plane (const csDVector3 &u, const csDVector3 &v, const csDVector3 &normal, const csDVector3 &a, csDVector3 &isect) |
Intersect a 3D segment with a plane. More... | |
bool | Plane (const csDVector3 &u, const csDVector3 &v, double A, double B, double C, double D, csDVector3 &isect, double &dist) |
Intersect a 3D segment with a plane. More... | |
bool | Plane (const csDVector3 &u, const csDVector3 &v, const csDPlane &p, csDVector3 &isect, double &dist) |
Intersect a 3D segment with a plane. More... | |
bool | Planes (const csDPlane &p1, const csDPlane &p2, const csDPlane &p3, csDVector3 &isect) |
Intersect 3 planes, to get the point that is part of all three planes. More... | |
double | Z0Plane (const csDVector3 &u, const csDVector3 &v, csDVector3 &isect) |
Intersect a 3D segment with the z = 0 plane. More... | |
double | ZPlane (double zval, const csDVector3 &u, const csDVector3 &v, csDVector3 &isect) |
Intersect a 3D segment with the plane z = zval. More... | |
double | XFrustum (double A, const csDVector3 &u, const csDVector3 &v, csDVector3 &isect) |
Intersect a 3D segment with the frustum plane Ax + z = 0. More... | |
double | YFrustum (double B, const csDVector3 &u, const csDVector3 &v, csDVector3 &isect) |
Intersect a 3D segment with the frustum plane By + z = 0. More... |
This is a static class and contains only static member functions.
Definition at line 597 of file math3d_d.h.
|
Intersect a 3D segment with a plane. Returns true if there is an intersection, with the intersection point returned in isect. The distance from u to the intersection point is returned in dist. The distance that is returned is a normalized distance with respect to the given input vector. i.e. a distance of 0.5 means that the intersection point is halfway u and v. |
|
Intersect a 3D segment with a plane. Returns true if there is an intersection, with the intersection point returned in isect. The distance from u to the intersection point is returned in dist. The distance that is returned is a normalized distance with respect to the given input vector. i.e. a distance of 0.5 means that the intersection point is halfway u and v. |
|
Intersect a 3D segment with a plane. Returns true if there is an intersection, with the intersection point returned in isect. |
|
Intersect 3 planes, to get the point that is part of all three planes. Returns true, if there is a single point that fits. If some planes are parallel, then it will return false. |
|
Intersect a 3D segment with the frustum plane Ax + z = 0. Assumes an intersection, and returns the intersection point in isect. |
|
Intersect a 3D segment with the frustum plane By + z = 0. Assumes an intersection, and returns the intersection point in isect. |
|
Intersect a 3D segment with the z = 0 plane. Assumes that there is an intersection (fails if the segment is parallel to the plane), and returns the distance from u to the intersection point. The intersection point is returned in isect. |
|
Intersect a 3D segment with the plane z = zval. Assumes that there is an intersection (fails if the segment is parallel to the plane), and returns the distance from u to the intersection point. The intersection point is returned in isect. |