#include <ddggeom.h>
Public Members | |||
float | a (void) | ||
float | b (void) | ||
float | c (void) | ||
ddgPlane3 (void) | |||
Default constructor. | |||
ddgPlane3 ( const ddgVector3 *p0, const ddgVector3 *p1, const ddgVector3 *p2) | |||
Create a plane given 3 points on its surface (counter clock wise). | |||
void | set ( const ddgVector3 *p0, const ddgVector3 *p1, const ddgVector3 *p2) | ||
Create a plane given 3 points on its surface (counter clock wise). | |||
ddgPlane3 ( const ddgVector3 p0, const ddgVector3 pn) | |||
Create a plane given a point on its surface and a normal. | |||
bool | projectAlongX (ddgVector3 *p) | ||
Given y and z find x in plane. | |||
bool | projectAlongY (ddgVector3 *p) | ||
Given x and z find y in plane. | |||
bool | projectAlongZ (ddgVector3 *p) | ||
Given x and y find z in plane. | |||
void | set ( const ddgVector3 pn, float pd ) | ||
void | normalize ( void ) | ||
ddgVector3 | project (ddgVector3 *p0) | ||
inv_denom = 1.0F / DotProduct( n, n ); d = DotProduct( n, p ) * inv_denom; dst[0..2] = p[0..2] - d * inv_denom * n[0..2];. | |||
bool | intersectPlaneWithLine ( const ddgVector3* l1, const ddgVector3* l2, ddgVector3 *pi) | ||
Intersect a plane with a line (defined by 2 points) return point of intersection. | |||
bool | intersectPointPlane ( const ddgVector3* pt) | ||
Intersect a point with plane. Returns if point is on the plane. | |||
float | distToPoint (const ddgVector3* p) | ||
Return distance between point and plane. | |||
float | isPointAbovePlane ( ddgVector3 *q) | ||
Returns positive if point is above plane, negative if below, 0 if on. | |||
ddgVector3 | n | ||
float | d |