Class implementing plane-related functionality. More...
#include </home/chochlik/devel/oglplus/include/oglplus/math/plane.hpp>
Public Member Functions | |
Plane (T a, T b, T c, T d) | |
construction from parameters | |
Plane (const Vector< T, 4 > &v) | |
Constructions from parameter vector. | |
const Vector< T, 4 > & | Equation (void) const |
Retuns the plane's equation parameters. | |
Static Public Member Functions | |
static Plane | FromTriangle (const Vector< T, 3 > &p0, const Vector< T, 3 > &p1, const Vector< T, 3 > &p2) |
Constructs a plane defined by points p0, p1, p2. | |
static Plane | FromPointAndVectors (const Vector< T, 3 > &p, const Vector< T, 3 > &v1, const Vector< T, 3 > &v2) |
Constructs a plane defined by point p0 and vectors v1 and v2. | |
static Plane | FromNormal (const Vector< T, 3 > &normal) |
Constructs a plane going through the origin from its normal vector. | |
static Plane | FromPointAndNormal (const Vector< T, 3 > &point, const Vector< T, 3 > &normal) |
Constructs a plane from a point on in and its normal vector. | |
Class implementing plane-related functionality.
Plane
is a lightweight class allowing more natural construction and usage of 2D planes in 3D space.