plane.h File Reference

#include "math/matrix.h"
Include dependency graph for plane.h:
This graph shows which files directly or indirectly include this file:

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

Define Documentation

#define INCLUDED_MATH_PLANE_H

Definition at line 28 of file plane.h.


Function Documentation

bool plane3_equal ( const Plane3 self,
const Plane3 other 
) [inline]
Plane3 plane3_flipped ( const Plane3 plane  )  [inline]
template<typename Element >
Plane3 plane3_for_points ( const BasicVector3< Element >  planepts[3]  )  [inline]

Definition at line 140 of file plane.h.

References plane3_for_points().

template<typename Element >
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().

Plane3 plane3_inverse_transformed ( const Plane3 plane,
const Matrix4 &  transform 
) [inline]

Definition at line 97 of file plane.h.

References Plane3::a, Plane3::b, Plane3::c, and Plane3::d.

Referenced by frustum_inverse_transformed().

Plane3 plane3_normalised ( const Plane3 plane  )  [inline]

Definition at line 69 of file plane.h.

References Plane3::a, Plane3::b, Plane3::c, and Plane3::d.

Referenced by frustum_from_viewproj().

bool plane3_opposing ( const Plane3 self,
const Plane3 other 
) [inline]

Definition at line 119 of file plane.h.

References plane3_equal(), and plane3_flipped().

Referenced by Brush::windingForClipPlane().

Plane3 plane3_transformed ( const Plane3 plane,
const Matrix4 &  transform 
) [inline]
Plane3 plane3_translated ( const Plane3 plane,
const Vector3 translation 
) [inline]
bool plane3_valid ( const Plane3 self  )  [inline]

Variable Documentation

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().


Generated by  doxygen 1.6.2