Gin
|
Equations to calculate the shape of an ellipse and to calculate points on the edge of the ellipse and to see if points are inside or outside. More...
Public Member Functions | |
Ellipse (T x_, T y_, T a_, T b_) | |
Creates a ellipse with a given centre and width / height. More... | |
Ellipse (T a_, T b_) | |
Creates a ellipse with centred at (0,0) with a width and height. More... | |
bool | isPointOn (Point< T > pt, T accuracy=0.00001) |
bool | isPointOutside (Point< T > pt) |
bool | isPointInside (Point< T > pt) |
Point< T > | pointAtAngle (T angle) |
juce::Array< Point< T > > | findIntersections (Point< T > p1, Point< T > p2) |
Public Attributes | |
T | x = 0 |
T | y = 0 |
T | a = 0 |
T | b = 0 |
Equations to calculate the shape of an ellipse and to calculate points on the edge of the ellipse and to see if points are inside or outside.
Creates a ellipse with a given centre and width / height.
Creates a ellipse with centred at (0,0) with a width and height.
References Ellipse< T >::a, Ellipse< T >::b, Point< T >::getX(), Point< T >::getY(), square, Ellipse< T >::x, Point< T >::x, Ellipse< T >::y, and Point< T >::y.
References Ellipse< T >::a, Ellipse< T >::b, Point< T >::getX(), Point< T >::getY(), square, Ellipse< T >::x, Point< T >::x, Ellipse< T >::y, and Point< T >::y.
References Ellipse< T >::a, Ellipse< T >::b, Point< T >::getX(), Point< T >::getY(), square, Ellipse< T >::x, Point< T >::x, Ellipse< T >::y, and Point< T >::y.
References Ellipse< T >::a, Ellipse< T >::b, square, Ellipse< T >::x, and Ellipse< T >::y.
juce::Array<Point<T> > Ellipse< T >::findIntersections | ( | Point< T > | p1, |
Point< T > | p2 | ||
) |
References Ellipse< T >::a, Ellipse< T >::b, math::max(), math::min(), Ellipse< T >::x, Point< T >::x, Ellipse< T >::y, and Point< T >::y.
T Ellipse< T >::x = 0 |
T Ellipse< T >::y = 0 |
T Ellipse< T >::a = 0 |
T Ellipse< T >::b = 0 |