|
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.
Creates a point at the origin (0, 0).
Referenced by Filter::getResponseMagnitude(), Point< T >::Point(), WTOscillator::processAddingComplex(), WTOscillator::processAddingCrossfadeComplex(), WTOscillator::processAddingSimple(), and Filter::setNumChannels().
Creates a point with the specified coordinates.
| x_ | The x coordinate |
| y_ | The y coordinate |
References Point< T >::Point(), Point< T >::x, and Point< T >::y.
Returns the x coordinate.
References Point< T >::x.
Referenced by gradientRect(), Ellipse< T >::isPointInside(), Ellipse< T >::isPointOn(), Ellipse< T >::isPointOutside(), and ModCurveButton::paintButton().
Returns the y coordinate.
References Point< T >::y.
Referenced by gradientRect(), Ellipse< T >::isPointInside(), Ellipse< T >::isPointOn(), Ellipse< T >::isPointOutside(), and ModCurveButton::paintButton().
The x coordinate.
Referenced by Point< T >::getX(), Ellipse< T >::isPointInside(), Ellipse< T >::isPointOn(), Ellipse< T >::isPointOutside(), Spline::Element::operator<(), and Point< T >::Point().
The y coordinate.
Referenced by Point< T >::getY(), Lagrange::interpolate(), Ellipse< T >::isPointInside(), Ellipse< T >::isPointOn(), Ellipse< T >::isPointOutside(), and Point< T >::Point().