DsEllipse is a class that represents a 2D ellipse (Xc, Yc, Rx, Ry)
More...
#include <ds_geometry.h>
|
| DsEllipse () |
| Creates a DsEllipse object initialized to (center = (0, 0), radius = (0, 0)).
|
|
| DsEllipse (float xc, float yc, float rx, float ry) |
| Creates a DsEllipse object.
|
|
| DsEllipse (DsFPoint center, DsFSize radius) |
| Creates a DsEllipse object.
|
|
| DsEllipse (DsFSize radius) |
| Creates a DsEllipse object initialized to a circle (horizontal and vertical radius are equal)
|
|
| DsEllipse (float radius) |
| Creates a DsEllipse object initialized to a circle (horizontal and vertical radius are equal)
|
|
| DsEllipse (DsFPoint center, float radius) |
| Creates a DsEllipse object initialized to a circle (horizontal and vertical radius are equal)
|
|
DsFRect | move (const DsFPoint &offset) override final |
| Moves the current DsEllipse object by a specified 2D offset.
|
|
pair< float, float > | getVerticalRange (float x) const override final |
|
pair< float, float > | getHorizontalRange (float y) const override final |
|
DsFRect | getRect (void) const override final |
|
void | rotate (const DsSurface &surface) override final |
|
void | setRadius (DsFSize radius) |
|
void | setRect (const DsFRect &rect) |
|
float | getRadiusAtAngle (float angle) |
|
DsFPoint | getPointAtAngle (float angle) |
|
DsFRect | computeArcBoundary (float start_angle, float end_angle, bool include_center) |
|
|
static void | computeArcBoundary (float start_angle, float end_angle, bool include_center, float &left, float &right, float &top, float &bottom) |
|
DsEllipse is a class that represents a 2D ellipse (Xc, Yc, Rx, Ry)
◆ DsEllipse() [1/5]
DsEllipse::DsEllipse |
( |
float |
xc, |
|
|
float |
yc, |
|
|
float |
rx, |
|
|
float |
ry |
|
) |
| |
|
inline |
Creates a DsEllipse object.
- Parameters
-
xc | X coordinate of the top left corner |
yc | Y coordinate of the top left corner |
rx | Hporizontal radius |
ry | Vertical radius |
◆ DsEllipse() [2/5]
Creates a DsEllipse object.
- Parameters
-
center | Coordinate of the center |
radius | Radius in pixels in the (X, Y) dimensions |
◆ DsEllipse() [3/5]
DsEllipse::DsEllipse |
( |
DsFSize |
radius | ) |
|
|
inline |
Creates a DsEllipse object initialized to a circle (horizontal and vertical radius are equal)
- Parameters
-
radius | Radius in pixels in the (X, Y) dimensions |
◆ DsEllipse() [4/5]
DsEllipse::DsEllipse |
( |
float |
radius | ) |
|
|
inline |
Creates a DsEllipse object initialized to a circle (horizontal and vertical radius are equal)
- Parameters
-
◆ DsEllipse() [5/5]
DsEllipse::DsEllipse |
( |
DsFPoint |
center, |
|
|
float |
radius |
|
) |
| |
|
inline |
Creates a DsEllipse object initialized to a circle (horizontal and vertical radius are equal)
- Parameters
-
center | Coordinate of the center |
radius | Radius in pixels |
◆ getHorizontalRange()
pair< float, float > DsEllipse::getHorizontalRange |
( |
float |
y | ) |
const |
|
finaloverridevirtual |
◆ getRect()
DsFRect DsEllipse::getRect |
( |
void |
| ) |
const |
|
finaloverridevirtual |
◆ getVerticalRange()
pair< float, float > DsEllipse::getVerticalRange |
( |
float |
x | ) |
const |
|
finaloverridevirtual |
◆ move()
|
inlinefinaloverridevirtual |
Moves the current DsEllipse object by a specified 2D offset.
- Parameters
-
- Returns
- Current DsFRect object that contains the ellipse
Implements DsRegion.
◆ rotate()
void DsEllipse::rotate |
( |
const DsSurface & |
surface | ) |
|
|
finaloverridevirtual |
The documentation for this class was generated from the following file: