The Circle class represents a circle.
More...
#include <circle.h>
The Circle class represents a circle.
- Author
- Sam Twidale (https://samcodes.co.uk/)
◆ Circle() [1/2]
geometrize::Circle::Circle |
( |
| ) |
|
|
default |
◆ Circle() [2/2]
geometrize::Circle::Circle |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
r |
|
) |
| |
12{
16}
float m_r
Radius.
Definition: circle.h:26
float m_y
y-coordinate.
Definition: circle.h:25
float m_x
x-coordinate.
Definition: circle.h:24
◆ clone()
clone Clones the shape, a virtual copy constructor.
- Returns
- A clone of the shape.
Reimplemented from geometrize::Shape.
19{
20 std::shared_ptr<geometrize::Circle> circle{std::make_shared<geometrize::Circle>()};
24 circle->setup =
setup;
27 return circle;
28}
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.
31{
33}
@ CIRCLE
Definition: shapetypes.h:23
◆ m_r
float geometrize::Circle::m_r |
◆ m_x
float geometrize::Circle::m_x |
◆ m_y
float geometrize::Circle::m_y |
The documentation for this class was generated from the following files:
- /home/appveyor/projects/geometrize-lib-docs/geometrize-lib/geometrize/geometrize/shape/circle.h
- /home/appveyor/projects/geometrize-lib-docs/geometrize-lib/geometrize/geometrize/shape/circle.cpp