Plane.hh
Go to the documentation of this file.
44 NEGATIVE_SIDE = 0,
48 POSITIVE_SIDE = 1,
51 NO_SIDE = 2,
54 BOTH_SIDE = 3
const Vector3< T > & Normal() const
Get the plane offset.
Definition: Plane.hh:196
T Distance(const Vector3< T > &_origin, const Vector3< T > &_dir) const
Get distance to the plane give an origin and direction.
Definition: Plane.hh:165
const Vector2< T > & Size() const
Get the plane size.
Definition: Plane.hh:184
PlaneSide Side(const math::AxisAlignedBox &_box) const
The side of the plane a box is on.
Definition: Plane.hh:147
Plane< T > & operator=(const Plane< T > &_p)
Equal operator.
Definition: Plane.hh:216
void Set(const Vector3< T > &_normal, const Vector2< T > &_size, T _offset)
Set the plane.
Definition: Plane.hh:103
T Dot(const Vector3< T > &_v) const
Return the dot product of this vector and another vector.
Definition: Vector3.hh:199
Plane(const Vector3< T > &_normal, T _offset=0.0)
Constructor from a normal and a distance.
Definition: Plane.hh:66
The Vector3 class represents the generic vector containing 3 elements. Since it's commonly used to ke...
Definition: Vector3.hh:40
PlaneSide
Enum used to indicate a side of the plane, no side, or both sides for entities on the plane...
Definition: Plane.hh:40
Plane(const Vector3< T > &_normal, const Vector2< T > &_size, T _offset)
Constructor.
Definition: Plane.hh:75
Definition: Angle.hh:42
T Distance(const Vector3< T > &_point) const
The distance to the plane from the given point. The distance can be negative, which indicates the poi...
Definition: Plane.hh:117
void Set(const Vector3< T > &_normal, T _offset)
Set the plane.
Definition: Plane.hh:93
Mathematical representation of a box that is aligned along an X,Y,Z axis.
Definition: AxisAlignedBox.hh:42
PlaneSide Side(const Vector3< T > &_point) const
The side of the plane a point is on.
Definition: Plane.hh:128