The RotatedRectangle class represents a rotated rectangle.
More...
#include <rotatedrectangle.h>
The RotatedRectangle class represents a rotated rectangle.
- Author
- Sam Twidale (https://samcodes.co.uk/)
◆ RotatedRectangle() [1/2]
geometrize::RotatedRectangle::RotatedRectangle |
( |
| ) |
|
|
default |
◆ RotatedRectangle() [2/2]
geometrize::RotatedRectangle::RotatedRectangle |
( |
float |
x1, |
|
|
float |
y1, |
|
|
float |
x2, |
|
|
float |
y2, |
|
|
float |
angle |
|
) |
| |
12{
18}
float m_y1
Top coordinate.
Definition: rotatedrectangle.h:25
float m_y2
Bottom coordinate.
Definition: rotatedrectangle.h:27
float m_x1
Left coordinate.
Definition: rotatedrectangle.h:24
float m_x2
Right coordinate.
Definition: rotatedrectangle.h:26
float m_angle
Rotation angle.
Definition: rotatedrectangle.h:28
◆ clone()
clone Clones the shape, a virtual copy constructor.
- Returns
- A clone of the shape.
Reimplemented from geometrize::Shape.
21{
22 std::shared_ptr<geometrize::RotatedRectangle> rect{std::make_shared<geometrize::RotatedRectangle>()};
31 return rect;
32}
std::function< std::vector< geometrize::Scanline >(const geometrize::Shape &)> rasterize
Definition: shape.h:27
std::function< void(geometrize::Shape &)> setup
Definition: shape.h:25
std::function< void(geometrize::Shape &)> mutate
Definition: shape.h:26
◆ getType()
getType Gets the ShapeType of the shape.
- Returns
- The ShapeType of the shape.
Reimplemented from geometrize::Shape.
35{
37}
@ ROTATED_RECTANGLE
Definition: shapetypes.h:19
◆ m_angle
float geometrize::RotatedRectangle::m_angle |
◆ m_x1
float geometrize::RotatedRectangle::m_x1 |
◆ m_x2
float geometrize::RotatedRectangle::m_x2 |
◆ m_y1
float geometrize::RotatedRectangle::m_y1 |
◆ m_y2
float geometrize::RotatedRectangle::m_y2 |
The documentation for this class was generated from the following files:
- /home/appveyor/projects/geometrize-lib-docs/geometrize-lib/geometrize/geometrize/shape/rotatedrectangle.h
- /home/appveyor/projects/geometrize-lib-docs/geometrize-lib/geometrize/geometrize/shape/rotatedrectangle.cpp