Jolt Physics
A multi core friendly Game Physics Engine
|
An infinite plane described by the formula X . Normal + Constant = 0. More...
#include <Plane.h>
Public Member Functions | |
JPH_OVERRIDE_NEW_DELETE | Plane ()=default |
Constructor. More... | |
Plane (Vec4Arg inNormalAndConstant) | |
Plane (Vec3Arg inNormal, float inConstant) | |
Vec3 | GetNormal () const |
void | SetNormal (Vec3Arg inNormal) |
float | GetConstant () const |
void | SetConstant (float inConstant) |
Plane | Offset (float inDistance) const |
Offset the plane (positive value means move it in the direction of the plane normal) More... | |
Plane | GetTransformed (Mat44Arg inTransform) const |
Transform the plane by a matrix. More... | |
float | SignedDistance (Vec3Arg inPoint) const |
Distance point to plane. More... | |
Static Public Member Functions | |
static Plane | sFromPointAndNormal (Vec3Arg inPoint, Vec3Arg inNormal) |
Create from point and normal. More... | |
static Plane | sFromPointAndNormal (DVec3Arg inPoint, Vec3Arg inNormal) |
Create from point and normal, double precision version that more accurately calculates the plane constant. More... | |
static Plane | sFromPointsCCW (Vec3Arg inV1, Vec3Arg inV2, Vec3Arg inV3) |
Create from 3 counter clockwise points. More... | |
static bool | sIntersectPlanes (const Plane &inP1, const Plane &inP2, const Plane &inP3, Vec3 &outPoint) |
Returns intersection point between 3 planes. More... | |
An infinite plane described by the formula X . Normal + Constant = 0.
|
default |
Constructor.
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
Offset the plane (positive value means move it in the direction of the plane normal)
|
inline |
|
inline |
Create from point and normal, double precision version that more accurately calculates the plane constant.
Create from point and normal.
Create from 3 counter clockwise points.
|
inline |
Distance point to plane.
|
inlinestatic |
Returns intersection point between 3 planes.