|
mElite
1.0
An Elite clone based on TextElite by Jan-Philipp Kappmeier and Melanie Schmidt.
|
Represents a plane in 3d space. More...
#include <Plane.h>
Public Member Functions | |
| Plane (void) | |
| Plane (const Vector3 &v1, const Vector3 &v2, const Vector3 &v3) | |
| Constructs a plane defined by three points in 3d space. | |
| Plane (Vector3 normal, Vector3 point) | |
| Constructs a plane defined by a point on the plane and the normal. | |
| ~Plane (void) | |
| void | setPlane (const Vector3 &normal, const Vector3 &point) |
| void | setPlane (const Vector3 &v1, const Vector3 &v2, const Vector3 &v3) |
| void | setPlane (float a, float b, float c, float d) |
| float | distance (const Vector3 &p) |
| Vector3 | getNormal (void) |
Represents a plane in 3d space.
Several methods of defining the plane are supported. The plane knows its normal and supports the operation of calculating the distance of a point to the plane.
| float Plane::distance | ( | const Vector3 & | p | ) |
| Vector3 Plane::getNormal | ( | void | ) |
| void Plane::setPlane | ( | float | a, |
| float | b, | ||
| float | c, | ||
| float | d | ||
| ) |
1.8.2