|
Gin
|
A lightweight 2D point class for projects that don't use juce_graphics. More...
#include <gin_point.h>
Public Member Functions | |
| Point ()=default | |
| Creates a point at the origin (0, 0). | |
| Point (T x_, T y_) | |
| Creates a point with the specified coordinates. | |
| T | getX () |
| Returns the x coordinate. | |
| T | getY () |
| Returns the y coordinate. | |
Public Attributes | |
| T | x = T (0) |
| The x coordinate. | |
| T | y = T (0) |
| The y coordinate. | |
A lightweight 2D point class for projects that don't use juce_graphics.
This class provides a simple coordinate pair with optional conversion to/from juce::Point when juce_graphics is available. It's useful for modules that need basic point functionality without depending on the full graphics module.
|
default |
Creates a point at the origin (0, 0).
| Point< T >::Point | ( | T | x_, |
| T | y_ ) |
| T Point< T >::getX | ( | ) |
Returns the x coordinate.
References x.
Referenced by Ellipse< T >::isPointInside(), Ellipse< T >::isPointOn(), and Ellipse< T >::isPointOutside().
| T Point< T >::getY | ( | ) |
Returns the y coordinate.
References y.
Referenced by Ellipse< T >::isPointInside(), Ellipse< T >::isPointOn(), and Ellipse< T >::isPointOutside().
| T Point< T >::x = T (0) |
The x coordinate.
Referenced by getX(), Ellipse< T >::isPointInside(), Ellipse< T >::isPointOn(), Ellipse< T >::isPointOutside(), and Point().
| T Point< T >::y = T (0) |
The y coordinate.
Referenced by getY(), Ellipse< T >::isPointInside(), Ellipse< T >::isPointOn(), Ellipse< T >::isPointOutside(), and Point().