A circular arc defined by a start point, end point and a bulge factor.
More...
#include <luciad/geometries/CircularArcByBulge.h>
|
size_t | getHash () const override |
| Returns the hash value for this geometry. More...
|
|
virtual size_t | getHash () const =0 |
| Returns the hash value for this geometry. More...
|
|
A circular arc defined by a start point, end point and a bulge factor.
- See also
- GeometryFactory::createCircularArcByBulge
◆ ~CircularArcByBulge()
luciad::CircularArcByBulge::~CircularArcByBulge |
( |
| ) |
|
|
override |
◆ computePoint()
Computes a point of the curve, defined by the given parameter.
- At parameter 0, the point is the start point of the curve.
- At parameter 1, the point is the end point of the curve.
- Parameters
-
parameter | the parameter value, within [0,1] , to compute the point location for. |
- Returns
- the computed point location.
- Exceptions
-
luciad::InvalidArgumentException | if parameter is not within [0,1] , or if the point could not be computed. For example, when the curve is defined by invalid points. |
Implements luciad::Curve.
◆ getBounds()
Bounds luciad::CircularArcByBulge::getBounds |
( |
| ) |
const |
|
overridevirtual |
Returns the bounds for the geometry object.
- Returns
- the bounds for the geometry object.
- Exceptions
-
Implements luciad::Geometry.
◆ getBulge()
double luciad::CircularArcByBulge::getBulge |
( |
| ) |
const |
Returns the bulge factor of this arc.
The bulge factor is the ratio of (1) the distance between the arc midpoint and the center of the arc's chord, and (2) half the length of the arc's chord. The sign of the bulge indicates whether the midpoint is on the left side (positive) or right side (negative) of the vector from start to end point. So a bulge factor with an absolute value of 1 means a half-circle, smaller than 1 means a less bulging arc and larger than 1 means an arc that bulges out in the start and end point.
- Returns
- the bulge factor of this arc.
◆ getEndPoint()
Returns the end point of this arc.
- Returns
- the end point of this arc.
◆ getHash()
size_t luciad::CircularArcByBulge::getHash |
( |
| ) |
const |
|
overrideprotectedvirtual |
Returns the hash value for this geometry.
- Returns
- the hash value for this geometry.
Implements luciad::Geometry.
◆ getLength2D()
double luciad::CircularArcByBulge::getLength2D |
( |
| ) |
const |
|
overridevirtual |
Returns the length of the curve.
- Returns
- the length of the curve.
- Exceptions
-
Implements luciad::Curve.
◆ getReference()
Returns the coordinate reference of the geometry.
- Returns
- the coordinate reference of the geometry.
Implements luciad::Geometry.
◆ getStartPoint()
Returns the start point of this arc.
- Returns
- the start point of this arc.