Plane.hpp
Go to the documentation of this file.
void setNormal(const etk::Vector3D< T > &_obj)
Set the normal of the plane.
Definition: Plane.hpp:55
T getIntercept() const
Get intercept Value of the plane.
Definition: Plane.hpp:107
void setFromPoints(const etk::Vector3D< T > &_p0, const etk::Vector3D< T > &_p1, const etk::Vector3D< T > &_p2)
Set the plane with 3 points in the space.
Definition: Plane.hpp:71
basic namespace of the etk library. (it might contain all the etk fuctions/class/structures without m...
Definition: Archive.hpp:16
Plane< T > linearInterpolate(const Plane< T > &_p2, float _factor)
Create a linear interpolation of the plane with an other.
Definition: Plane.hpp:147
etk::Vector3D< T > intersect3(const Plane< T > &_p2, const Plane< T > &_p3)
Get the intersection between 3 planes.
Definition: Plane.hpp:116
bool operator!=(const Plane< T > &_obj) const
In-Equality compare operator with an other object.
Definition: Plane.hpp:173
float dot(const Vector3D< T > &_obj) const
Return the dot product.
Definition: Vector3D.hpp:157
Plane(etk::Vector3D< T > _normal, T _intercept=0)
Constructor of a Plane.
Definition: Plane.hpp:37
float getDistance(const etk::Vector3D< T > &_point) const
Get distance from a point to the plane.
Definition: Plane.hpp:135
void setIntercept(float _intercept)
Set interception value of the plane.
Definition: Plane.hpp:62
void calculateIntercept(const etk::Vector3D< T > &_pointOnPlane)
Calculate interception value with a point in the plane.
Definition: Plane.hpp:82
const etk::Vector3D< T > & getNormal() const
Get the normal of the plane.
Definition: Plane.hpp:100
bool operator==(const Plane< T > &_obj) const
Equality compare operator with an other object.
Definition: Plane.hpp:160
Vector3D< T > cross(const Vector3D< T > &_obj) const
Return the cross product between this and another vector.
Definition: Vector3D.hpp:267
Vector3D< T > & normalize()
Normalize this vector x^2 + y^2 + z^2 = 1.
Definition: Vector3D.hpp:216