etk::Plane< T > Class Template Reference
#include <Plane.hpp>
Public Member Functions | |
Plane () | |
Plane (etk::Vector3D< T > _normal, T _intercept=0) | |
Plane (const Plane &_obj) | |
void | setNormal (const etk::Vector3D< T > &_obj) |
void | setIntercept (float _intercept) |
void | setFromPoints (const etk::Vector3D< T > &_p0, const etk::Vector3D< T > &_p1, const etk::Vector3D< T > &_p2) |
void | calculateIntercept (const etk::Vector3D< T > &_pointOnPlane) |
void | normalize () |
const etk::Vector3D< T > & | getNormal () const |
T | getIntercept () const |
etk::Vector3D< T > | intersect3 (const Plane< T > &_p2, const Plane< T > &_p3) |
float | getDistance (const etk::Vector3D< T > &_point) const |
Plane< T > | linearInterpolate (const Plane< T > &_p2, float _factor) |
bool | operator== (const Plane< T > &_obj) const |
bool | operator!= (const Plane< T > &_obj) const |
Detailed Description
template<typename T>
class etk::Plane< T >
Plane equation template: define a plane equation.
- Todo:
- Validate it, this is a !!! PROTOTYPE !!!
Constructor & Destructor Documentation
§ Plane() [1/3]
template<typename T>
|
inline |
Constructor of a Plane.
§ Plane() [2/3]
template<typename T>
|
inline |
Constructor of a Plane.
- Parameters
-
[in] _normal Normal of the plane [in] _intercept Interception value of the plane
§ Plane() [3/3]
template<typename T>
|
inline |
Member Function Documentation
§ calculateIntercept()
template<typename T>
|
inline |
Calculate interception value with a point in the plane.
- Parameters
-
[in] _pointOnPlane Point in the plane
§ getDistance()
template<typename T>
|
inline |
Get distance from a point to the plane.
- Parameters
-
[in] _point Point to calculate the distance
- Returns
- distance of the Point
§ getIntercept()
template<typename T>
|
inline |
Get intercept Value of the plane.
- Returns
- The Intercept value
§ getNormal()
template<typename T>
|
inline |
Get the normal of the plane.
- Returns
- Vector of the normal
§ intersect3()
template<typename T>
|
inline |
Get the intersection between 3 planes.
- Parameters
-
[in] _p2 Second plane [in] _p3 Third plane
- Returns
- vec3(0,0,0) No Intersection find, else when find
§ linearInterpolate()
template<typename T>
|
inline |
Create a linear interpolation of the plane with an other.
- Parameters
-
[in] _p2 Second plane [in] _factor Factor to scale
- Returns
- New plane equation
§ normalize()
template<typename T>
|
inline |
Normalize tha plane properties.
§ operator!=()
template<typename T>
|
inline |
In-Equality compare operator with an other object.
- Parameters
-
[in] _obj Reference on the comparing object
- Returns
- true The Objects are NOT identical
- false The Objects are identical
§ operator==()
template<typename T>
|
inline |
Equality compare operator with an other object.
- Parameters
-
[in] _obj Reference on the comparing object
- Returns
- true The Objects are identical
- false The Objects are NOT identical
§ setFromPoints()
template<typename T>
|
inline |
Set the plane with 3 points in the space.
- Parameters
-
[in] _p0 First point [in] _p1 Second point [in] _p2 Thrid point
§ setIntercept()
template<typename T>
|
inline |
Set interception value of the plane.
- Parameters
-
[in] _intercept Value of the intercept
§ setNormal()
template<typename T>
|
inline |
Set the normal of the plane.
- Parameters
-
[in] _obj Vector of the normal
The documentation for this class was generated from the following file:
- framework/atria-soft/etk/etk/math/Plane.hpp