Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <Opcode.h>
Public Member Functions | |
inline_ | Plane () |
Constructor. More... | |
inline_ | Plane (float nx, float ny, float nz, float d) |
Constructor from a normal and a distance. More... | |
inline_ | Plane (const Point &p, const Point &n) |
Constructor from a point on the plane and a normal. More... | |
inline_ | Plane (const Point &p0, const Point &p1, const Point &p2) |
Constructor from three points. More... | |
inline_ | Plane (const Point &_n, float _d) |
Constructor from a normal and a distance. More... | |
inline_ | Plane (const Plane &plane) |
Copy constructor. More... | |
inline_ | ~Plane () |
Destructor. More... | |
inline_ Plane & | Zero () |
inline_ Plane & | Set (float nx, float ny, float nz, float _d) |
inline_ Plane & | Set (const Point &p, const Point &_n) |
Plane & | Set (const Point &p0, const Point &p1, const Point &p2) |
inline_ float | Distance (const Point &p) const |
inline_ bool | Belongs (const Point &p) const |
inline_ void | Normalize () |
inline_ | operator Point () const |
inline_ | operator HPoint () const |
inline_ Plane | operator* (const Matrix4x4 &m) const |
inline_ Plane & | operator*= (const Matrix4x4 &m) |
Public Attributes | |
Point | n |
The normal to the plane. More... | |
float | d |
The distance from the origin. More... | |
Definition at line 41 of file Opcode.h.
Referenced by VPlaneSideEps().
Computes the plane equation from 3 points.
p0 | [in] first point |
p1 | [in] second point |
p2 | [in] third point |
Definition at line 34 of file IcePlane.cpp.
float Opcode::Plane::d |
The distance from the origin.
Definition at line 55 of file Opcode.h.
Referenced by Opcode::Point::ProjectToPlane().
Point Opcode::Plane::n |
The normal to the plane.
Definition at line 54 of file Opcode.h.
Referenced by Opcode::Point::ProjectToPlane().