Stadium2d
See source codeTable of contents
Extends Geometry2d.
class Stadium2d extends Geometry2d {}Constructor
Constructs a new instance of the Stadium2d class
Parameters
| Name | Description |
|---|---|
| |
Properties
a
a: Arc2darea
readonly
from Geometry2d
get area(): numberb
b: Edge2dbounds
readonly
from Geometry2d
get bounds(): Boxc
c: Arc2dcenter
readonly
from Geometry2d
get center(): Vecconfig
config: Omit<Geometry2dOptions, 'isClosed'> & {
height: number
width: number
}d
d: Edge2ddebugColor
optional
from Geometry2d
debugColor?: stringh
h: numberignore
optional
from Geometry2d
ignore?: booleanisClosed
from Geometry2d
isClosed: booleanisFilled
from Geometry2d
isFilled: booleanisLabel
from Geometry2d
isLabel: booleanlength
readonly
from Geometry2d
get length(): numbervertices
readonly
from Geometry2d
get vertices(): Vec[]w
w: numberMethods
distanceToLineSegment()
from Geometry2d
Parameters
Returns
numberdistanceToPoint()
from Geometry2d
distanceToPoint(point: Vec, hitInside?: boolean): numberParameters
| Name | Description |
|---|---|
| |
| |
Returns
numbergetArea()
from Geometry2d
getArea(): numbergetBounds()
getBounds(): BoxgetLength()
getLength(): numbergetSvgPathData()
getSvgPathData(): stringgetVertices()
getVertices(): Vec[]hitTestLineSegment()
Parameters
Returns
booleanhitTestPoint()
from Geometry2d
hitTestPoint(point: Vec, margin?: number, hitInside?: boolean): booleanParameters
| Name | Description |
|---|---|
| |
| |
| |
Returns
booleanisPointInBounds()
from Geometry2d
isPointInBounds(point: Vec, margin?: number): booleanParameters
| Name | Description |
|---|---|
| |
| |
Returns
booleannearestPoint()
Parameters
| Name | Description |
|---|---|
|
Returns
nearestPointOnLineSegment()
from Geometry2d
Parameters
Returns
toSimpleSvgPath()
from Geometry2d
toSimpleSvgPath(): stringPrev
SnapManagerNext
StateNode