|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
Represents a parallelogram that is defined by 3 points. More...
#include "juce_Parallelogram.h"
Public Member Functions | |
| Parallelogram ()=default | |
| Creates a parallelogram with zero size at the origin. | |
| Parallelogram (const Parallelogram &)=default | |
| Creates a copy of another parallelogram. | |
| Parallelogram (Point< ValueType > topLeftPosition, Point< ValueType > topRightPosition, Point< ValueType > bottomLeftPosition) noexcept | |
| Creates a parallelogram based on 3 points. | |
| Parallelogram (Rectangle< ValueType > rectangle) noexcept | |
| Creates a parallelogram from a rectangle. | |
| Parallelogram & | operator= (const Parallelogram &)=default |
| ~Parallelogram ()=default | |
| Destructor. | |
| bool | isEmpty () const noexcept |
| Returns true if the parallelogram has a width or height of more than zero. | |
| bool | isFinite () const noexcept |
| Returns true if the parallelogram's coordinates are all finite numbers, i.e. | |
| ValueType | getWidth () const noexcept |
| Returns the width of the parallelogram (i.e. | |
| ValueType | getHeight () const noexcept |
| Returns the height of the parallelogram (i.e. | |
| Point< ValueType > | getTopLeft () const noexcept |
| Returns the parallelogram's top-left position as a Point. | |
| Point< ValueType > | getTopRight () const noexcept |
| Returns the parallelogram's top-right position as a Point. | |
| Point< ValueType > | getBottomLeft () const noexcept |
| Returns the parallelogram's bottom-left position as a Point. | |
| Point< ValueType > | getBottomRight () const noexcept |
| Returns the parallelogram's bottom-right position as a Point. | |
| bool | operator== (const Parallelogram &other) const noexcept |
| Returns true if the two parallelograms are identical. | |
| bool | operator!= (const Parallelogram &other) const noexcept |
| Returns true if the two parallelograms are not identical. | |
| Parallelogram | operator+ (Point< ValueType > deltaPosition) const noexcept |
| Returns a parallelogram which is the same as this one moved by a given amount. | |
| Parallelogram & | operator+= (Point< ValueType > deltaPosition) noexcept |
| Moves this parallelogram by a given amount. | |
| Parallelogram | operator- (Point< ValueType > deltaPosition) const noexcept |
| Returns a parallelogram which is the same as this one moved by a given amount. | |
| Parallelogram & | operator-= (Point< ValueType > deltaPosition) noexcept |
| Moves this parallelogram by a given amount. | |
| template<typename PointOrScalarType > | |
| Parallelogram | operator* (PointOrScalarType scaleFactor) const noexcept |
| Returns a parallelogram that has been scaled by the given amount, centred around the origin. | |
| template<typename PointOrScalarType > | |
| Parallelogram | operator*= (PointOrScalarType scaleFactor) noexcept |
| Scales this parallelogram by the given amount, centred around the origin. | |
| Point< ValueType > | getRelativePoint (Point< ValueType > relativePosition) const noexcept |
| Returns a point within this parallelogram, specified as proportional coordinates. | |
| Parallelogram | transformedBy (const AffineTransform &transform) const noexcept |
| Returns a transformed version of the parallelogram. | |
| Rectangle< ValueType > | getBoundingBox () const noexcept |
| Returns the smallest rectangle that encloses this parallelogram. | |
Public Attributes | |
| Point< ValueType > | topLeft |
| Point< ValueType > | topRight |
| Point< ValueType > | bottomLeft |
Represents a parallelogram that is defined by 3 points.
@tags{Graphics}
Definition at line 37 of file juce_Parallelogram.h.
|
noexcept |
Creates a parallelogram based on 3 points.
Definition at line 49 of file juce_Parallelogram.h.
|
noexcept |
Creates a parallelogram from a rectangle.
Definition at line 57 of file juce_Parallelogram.h.
|
noexcept |
Returns the parallelogram's bottom-left position as a Point.
Definition at line 90 of file juce_Parallelogram.h.
|
noexcept |
Returns the parallelogram's bottom-right position as a Point.
Definition at line 93 of file juce_Parallelogram.h.
|
noexcept |
Returns the smallest rectangle that encloses this parallelogram.
Definition at line 176 of file juce_Parallelogram.h.
|
noexcept |
Returns the height of the parallelogram (i.e.
the straight-line distance between the top-left and bottom-left.
Definition at line 80 of file juce_Parallelogram.h.
|
noexcept |
Returns a point within this parallelogram, specified as proportional coordinates.
The relative X and Y values should be between 0 and 1, where 0 is the left or top of this parallelogram, and 1 is the right or bottom. (Out-of-bounds values will return a point outside the parallelogram).
Definition at line 157 of file juce_Parallelogram.h.
|
noexcept |
Returns the parallelogram's top-left position as a Point.
Definition at line 84 of file juce_Parallelogram.h.
|
noexcept |
Returns the parallelogram's top-right position as a Point.
Definition at line 87 of file juce_Parallelogram.h.
|
noexcept |
Returns the width of the parallelogram (i.e.
the straight-line distance between the top-left and top-right.
Definition at line 77 of file juce_Parallelogram.h.
|
noexcept |
Returns true if the parallelogram has a width or height of more than zero.
Definition at line 71 of file juce_Parallelogram.h.
|
noexcept |
Returns true if the parallelogram's coordinates are all finite numbers, i.e.
not NaN or infinity.
Definition at line 74 of file juce_Parallelogram.h.
|
noexcept |
Returns true if the two parallelograms are not identical.
Definition at line 100 of file juce_Parallelogram.h.
|
noexcept |
Returns a parallelogram that has been scaled by the given amount, centred around the origin.
Definition at line 134 of file juce_Parallelogram.h.
|
noexcept |
Scales this parallelogram by the given amount, centred around the origin.
Definition at line 143 of file juce_Parallelogram.h.
|
noexcept |
Returns a parallelogram which is the same as this one moved by a given amount.
Definition at line 104 of file juce_Parallelogram.h.
|
noexcept |
Moves this parallelogram by a given amount.
Definition at line 112 of file juce_Parallelogram.h.
|
noexcept |
Returns a parallelogram which is the same as this one moved by a given amount.
Definition at line 121 of file juce_Parallelogram.h.
|
noexcept |
Moves this parallelogram by a given amount.
Definition at line 127 of file juce_Parallelogram.h.
|
noexcept |
Returns true if the two parallelograms are identical.
Definition at line 97 of file juce_Parallelogram.h.
|
noexcept |
Returns a transformed version of the parallelogram.
Definition at line 165 of file juce_Parallelogram.h.
| Point<ValueType> juce::Parallelogram< ValueType >::bottomLeft |
Definition at line 182 of file juce_Parallelogram.h.
| Point<ValueType> juce::Parallelogram< ValueType >::topLeft |
Definition at line 182 of file juce_Parallelogram.h.
| Point<ValueType> juce::Parallelogram< ValueType >::topRight |
Definition at line 182 of file juce_Parallelogram.h.