#include "math/matrix.h"
Go to the source code of this file.
Data Structures | |
class | Plane3 |
A plane equation stored in double-precision floating-point. More... | |
Defines | |
#define | INCLUDED_MATH_PLANE_H |
Functions | |
Plane3 | plane3_normalised (const Plane3 &plane) |
Plane3 | plane3_translated (const Plane3 &plane, const Vector3 &translation) |
Plane3 | plane3_transformed (const Plane3 &plane, const Matrix4 &transform) |
Plane3 | plane3_inverse_transformed (const Plane3 &plane, const Matrix4 &transform) |
Plane3 | plane3_flipped (const Plane3 &plane) |
bool | plane3_equal (const Plane3 &self, const Plane3 &other) |
bool | plane3_opposing (const Plane3 &self, const Plane3 &other) |
bool | plane3_valid (const Plane3 &self) |
template<typename Element > | |
Plane3 | plane3_for_points (const BasicVector3< Element > &p0, const BasicVector3< Element > &p1, const BasicVector3< Element > &p2) |
template<typename Element > | |
Plane3 | plane3_for_points (const BasicVector3< Element > planepts[3]) |
Variables | |
const double | c_PLANE_NORMAL_EPSILON = 0.0001f |
const double | c_PLANE_DIST_EPSILON = 0.02 |
Definition at line 113 of file plane.h.
References c_PLANE_DIST_EPSILON, c_PLANE_NORMAL_EPSILON, Plane3::dist(), float_equal_epsilon(), Plane3::normal(), and vector3_equal_epsilon().
Referenced by plane3_opposing(), and Brush::windingForClipPlane().
Definition at line 105 of file plane.h.
References Plane3::dist(), and Plane3::normal().
Referenced by plane3_opposing(), FaceInstance::selectReversedPlane(), and DragPlanes::selectReversedPlanes().
Plane3 plane3_for_points | ( | const BasicVector3< Element > | planepts[3] | ) | [inline] |
Definition at line 140 of file plane.h.
References plane3_for_points().
Plane3 plane3_for_points | ( | const BasicVector3< Element > & | p0, | |
const BasicVector3< Element > & | p1, | |||
const BasicVector3< Element > & | p2 | |||
) | [inline] |
Definition at line 130 of file plane.h.
References BasicVector3< Element >::dot(), and Plane3::normal().
Referenced by FacePlane::MakePlane(), and plane3_for_points().
Definition at line 119 of file plane.h.
References plane3_equal(), and plane3_flipped().
Referenced by Brush::windingForClipPlane().
Definition at line 86 of file plane.h.
References Plane3::a, Plane3::b, Plane3::c, and Plane3::d.
Referenced by frustum_transformed(), Plane3_applyTransform(), and viewer_test_transformed_plane().
Definition at line 75 of file plane.h.
References Plane3::a, Plane3::b, Plane3::c, Plane3::d, BasicVector3< Element >::x(), BasicVector3< Element >::y(), and BasicVector3< Element >::z().
Referenced by Plane3_applyTranslation().
bool plane3_valid | ( | const Plane3 & | self | ) | [inline] |
Definition at line 124 of file plane.h.
References float_equal_epsilon().
Referenced by Brush::buildWindings(), BrushClipPlane::setPlane(), Face::snapto(), and Brush::windingForClipPlane().
const double c_PLANE_DIST_EPSILON = 0.02 |
Definition at line 111 of file plane.h.
Referenced by plane3_equal().
const double c_PLANE_NORMAL_EPSILON = 0.0001f |
Definition at line 110 of file plane.h.
Referenced by plane3_equal().