Public Member Functions | |
Plane3D (const Point3D &normal, const Point3D &pt) | |
Plane3D (const Point3D &p1, const Point3D &p2, const Point3D &p3) | |
double | evaluate (const Point3D &p) const |
double | operator() (const Point3D &p) const |
void | makePositive (const Point3D &p) |
Public Attributes | |
Point3D | normal |
double | distance |
|
This constructor generates a plane with the specified normal, passing through the point pt. |
|
This constructor generates a plane that contains the triangle specified by the three vertices. |
|
This method evalues the plane equation at the specified point, returning p.dot(normal)+distance. |
|
This method orients the plane so that the value of the plane function at p is non-negative. |
|
This method evalues the plane equation at the specified point, returning p.dot(normal)+distance. |
|
(Minus) the normal distance of the plane from the origin |
|
The normal of the plane |