Antkeeper
0.0.1
|
A flat 2-dimensional surface. More...
#include <plane.hpp>
Public Types | |
typedef math::vector< T, 3 > | vector_type |
Public Member Functions | |
plane (const vector_type &normal, T distance) | |
Creates a plane given a normal vector and distance. More... | |
plane (const vector_type &normal, const vector_type &offset) | |
Creates a plane given a normal vector and offset vector. More... | |
plane (const vector_type &a, const vector_type &b, const vector_type &c) | |
Creates a plane given three points. More... | |
plane (const math::vector< T, 4 > &coefficients) | |
Creates a plane given its coefficients. More... | |
plane ()=default | |
Creates an uninitialized plane. More... | |
T | signed_distance (const vector_type &v) const |
Calculates the signed distance between a plane and a vector. More... | |
Static Public Member Functions | |
static vector_type | intersection (const plane &p0, const plane &p1, const plane &p2) |
Calculates the point of intersection between three planes. More... | |
Public Attributes | |
vector_type | normal |
Plane normal vector. More... | |
T | distance |
Plane distance. More... | |
A flat 2-dimensional surface.
typedef math::vector<T, 3> geom::plane< T >::vector_type |
|
inline |
geom::plane< T >::plane | ( | const vector_type & | normal, |
const vector_type & | offset | ||
) |
geom::plane< T >::plane | ( | const vector_type & | a, |
const vector_type & | b, | ||
const vector_type & | c | ||
) |
|
explicit |
|
default |
Creates an uninitialized plane.
|
static |
|
inline |
T geom::plane< T >::distance |
vector_type geom::plane< T >::normal |