Jolt Physics
A multi core friendly Game Physics Engine
|
#include <Ellipse.h>
Public Member Functions | |
JPH_OVERRIDE_NEW_DELETE | Ellipse (float inA, float inB) |
Construct ellipse with radius A along the X-axis and B along the Y-axis. More... | |
bool | IsInside (const Float2 &inPoint) const |
Check if inPoint is inside the ellipse. More... | |
Float2 | GetClosestPoint (const Float2 &inPoint) const |
Float2 | GetNormal (const Float2 &inPoint) const |
Get normal at point inPoint (non-normalized vector) More... | |
Ellipse centered around the origin
|
inline |
Construct ellipse with radius A along the X-axis and B along the Y-axis.
Get the closest point on the ellipse to inPoint Assumes inPoint is outside the ellipse
Get normal at point inPoint (non-normalized vector)
|
inline |
Check if inPoint is inside the ellipse.