| 
    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...
#include <gin_geometry.h>
Public Member Functions | |
| Ellipse (T x_, T y_, T a_, T b_) | |
| Creates a ellipse with a given centre and width / height.   | |
| Ellipse (T a_, T b_) | |
| Creates a ellipse with centred at (0,0) with a width and height.   | |
| bool | isPointOn (Point< T > pt, T accuracy=0.00001) | 
| bool | isPointOutside (Point< T > pt) | 
| bool | isPointInside (Point< T > pt) | 
| Point< T > | pointAtAngle (T angle) | 
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.
| T Ellipse< T >::x = 0 | 
| T Ellipse< T >::y = 0 | 
| T Ellipse< T >::a = 0 | 
| T Ellipse< T >::b = 0 |