|
LMMS
|
#include <juce_Point.h>
Public Types | |
| using | FloatType = typename TypeHelpers::SmallestFloatType<ValueType>::type |
Public Attributes | |
| ValueType | x {} |
| ValueType | y {} |
A pair of (x, y) coordinates.
The ValueType template should be a primitive type such as int, float, double, rather than a class.
@tags{Graphics}
| using juce::Point< ValueType >::FloatType = typename TypeHelpers::SmallestFloatType<ValueType>::type |
This type will be double if the Point's type is double, otherwise it will be float.
|
constexprdefaultnoexcept |
Creates a point at the origin
|
constexprdefault |
Creates a copy of another point.
|
inlineconstexprnoexcept |
Creates a point from an (x, y) position.
|
inlinenoexcept |
Adds a pair of coordinates to this value.
|
inlinenoexcept |
Uses a transform to change the point's coordinates. This will only compile if ValueType = float!
|
inlinenoexcept |
Returns the angle from this point to another one.
Taking this point to be the centre of a circle, and the other point being a position on the circumference, the return value is the number of radians clockwise from the 12 o'clock direction. So 12 o'clock = 0, 3 o'clock = Pi/2, 6 o'clock = Pi, 9 o'clock = -Pi/2
|
inlinenoexcept |
Returns the straight-line distance between this point and another one.
|
inlinenoexcept |
Returns the straight-line distance between this point and the origin.
|
inlineconstexprnoexcept |
Returns the square of the straight-line distance between this point and another one.
|
inlineconstexprnoexcept |
Returns the square of the straight-line distance between this point and the origin.
|
inlineconstexprnoexcept |
Returns the dot-product of two points (x1 * x2 + y1 * y2).
|
inlinenoexcept |
Taking this point to be the centre of a circle, this returns a point on its circumference.
| radius | the radius of the circle. |
| angle | the angle of the point, in radians clockwise from the 12 o'clock position. |
|
inlinenoexcept |
Taking this point to be the centre of an ellipse, this returns a point on its circumference.
| radiusX | the horizontal radius of the circle. |
| radiusY | the vertical radius of the circle. |
| angle | the angle of the point, in radians clockwise from the 12 o'clock position. |
|
inlineconstexprnoexcept |
Returns the point's x coordinate.
|
inlineconstexprnoexcept |
Returns the point's y coordinate.
|
inlineconstexprnoexcept |
Returns true if the coordinates are finite values.
|
inlineconstexprnoexcept |
Returns true if the point is (0, 0).
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Returns a point whose coordinates are multiplied by a given scalar value.
|
inlineconstexprnoexcept |
Multiplies two points together
|
inlinenoexcept |
Multiplies the point's coordinates by a scalar value.
|
inlinenoexcept |
Multiplies another point's coordinates to this one
|
inlineconstexprnoexcept |
Adds two points together
|
inlinenoexcept |
Adds another point's coordinates to this one
|
inlineconstexprnoexcept |
Returns the inverse of this point.
|
inlineconstexprnoexcept |
Subtracts one points from another
|
inlinenoexcept |
Subtracts another point's coordinates to this one
|
inlineconstexprnoexcept |
Returns a point whose coordinates are divided by a given scalar value.
|
inlineconstexprnoexcept |
Divides one point by another
|
inlinenoexcept |
Divides the point's coordinates by a scalar value.
|
inlinenoexcept |
Divides this point's coordinates by another
|
defaultnoexcept |
Copies this point from another one.
|
inlineconstexprnoexcept |
|
inlinenoexcept |
Returns the point that would be reached by rotating this point clockwise about the origin by the specified angle.
|
inlineconstexprnoexcept |
Casts this point to a Point<int> object using roundToInt() to convert the values.
|
inlinenoexcept |
Sets the point's x coordinate.
|
inlinenoexcept |
Changes the point's x and y coordinates.
|
inlinenoexcept |
Sets the point's y coordinate.
|
inlineconstexprnoexcept |
Casts this point to a Point<double> object.
|
inlineconstexprnoexcept |
Casts this point to a Point<float> object.
|
inlineconstexprnoexcept |
Casts this point to a Point<int> object.
|
inline |
Returns the point as a string in the form "x, y".
|
inlinenoexcept |
Returns the position of this point, if it is transformed by a given AffineTransform.
|
inlineconstexprnoexcept |
Returns a point with a given offset from this one.
|
inlineconstexprnoexcept |
Returns a point which has the same Y position as this one, but a new X.
|
inlineconstexprnoexcept |
Returns a point which has the same X position as this one, but a new Y.
| ValueType juce::Point< ValueType >::x {} |
The point's X coordinate.
| ValueType juce::Point< ValueType >::y {} |
The point's Y coordinate.