Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
Ellipse Class Reference

#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...
 

Detailed Description

Ellipse centered around the origin

See also
https://en.wikipedia.org/wiki/Ellipse

Constructor & Destructor Documentation

◆ Ellipse()

JPH_OVERRIDE_NEW_DELETE Ellipse::Ellipse ( float  inA,
float  inB 
)
inline

Construct ellipse with radius A along the X-axis and B along the Y-axis.

Member Function Documentation

◆ GetClosestPoint()

Float2 Ellipse::GetClosestPoint ( const Float2 inPoint) const
inline

Get the closest point on the ellipse to inPoint Assumes inPoint is outside the ellipse

See also
Rotation Joint Limits in Quaternion Space by Gino van den Bergen, section 10.1 in Game Engine Gems 3.

◆ GetNormal()

Float2 Ellipse::GetNormal ( const Float2 inPoint) const
inline

Get normal at point inPoint (non-normalized vector)

◆ IsInside()

bool Ellipse::IsInside ( const Float2 inPoint) const
inline

Check if inPoint is inside the ellipse.


The documentation for this class was generated from the following file: