new Circle(centre, radius)
- Source:
Circle shape.
Parameters:
Name | Type | Description |
---|---|---|
centre |
dwv.math.Point2D | A Point2D representing the centre of the circle. |
radius |
number | The radius of the circle. |
Methods
equals(rhs) → {boolean}
- Source:
Check for equality.
Parameters:
Name | Type | Description |
---|---|---|
rhs |
dwv.math.Circle | The object to compare to. |
Returns:
True if both objects are equal.
- Type
- boolean
getCenter() → {dwv.math.Point2D}
- Source:
Get the centre (point) of the circle.
Returns:
The center (point) of the circle.
- Type
- dwv.math.Point2D
getRadius() → {number}
- Source:
Get the radius of the circle.
Returns:
The radius of the circle.
- Type
- number
getRound() → {Array}
- Source:
Get the rounded limits of the circle. (see https://en.wikipedia.org/wiki/Circle#Equations) Circle formula: xx + yy = rr => y = (+-) sqrt(rr - x*x)
Returns:
The rounded limits.
- Type
- Array
getSurface() → {number}
- Source:
Get the surface of the circle.
Returns:
The surface of the circle.
- Type
- number
getWorldSurface(spacingX, spacingY) → {number}
- Source:
Get the surface of the circle according to a spacing.
Parameters:
Name | Type | Description |
---|---|---|
spacingX |
number | The X spacing. |
spacingY |
number | The Y spacing. |
Returns:
The surface of the circle multiplied by the given spacing or null for null spacings.
- Type
- number
quantify(viewController, flags) → {object}
- Source:
Quantify an circle according to view information.
Parameters:
Name | Type | Description |
---|---|---|
viewController |
dwv.ctrl.ViewController | The associated view controller. |
flags |
Array | A list of stat values to calculate. |
Returns:
A quantification object.
- Type
- object