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: Arc2d
area
readonly
from Geometry2d
get area(): number
b
b: Edge2d
bounds
readonly
from Geometry2d
get bounds(): Box
c
c: Arc2d
center
readonly
from Geometry2d
get center(): Vec
config
config: Omit<Geometry2dOptions, 'isClosed'> & {
height: number
width: number
}
d
d: Edge2d
debugColor
optional
from Geometry2d
debugColor?: string
h
h: number
ignore
optional
from Geometry2d
ignore?: boolean
isClosed
from Geometry2d
isClosed: boolean
isFilled
from Geometry2d
isFilled: boolean
isLabel
from Geometry2d
isLabel: boolean
length
readonly
from Geometry2d
get length(): number
vertices
readonly
from Geometry2d
get vertices(): Vec[]
w
w: number
Methods
distanceToLineSegment()
from Geometry2d
Parameters
Returns
number
distanceToPoint()
from Geometry2d
distanceToPoint(point: Vec, hitInside?: boolean): number
Parameters
Name | Description |
---|---|
| |
|
|
Returns
number
getArea()
from Geometry2d
getArea(): number
getBounds()
getBounds(): Box
getLength()
getLength(): number
getSvgPathData()
getSvgPathData(): string
getVertices()
getVertices(): Vec[]
hitTestLineSegment()
Parameters
Returns
boolean
hitTestPoint()
from Geometry2d
hitTestPoint(point: Vec, margin?: number, hitInside?: boolean): boolean
Parameters
Name | Description |
---|---|
| |
|
|
|
|
Returns
boolean
isPointInBounds()
from Geometry2d
isPointInBounds(point: Vec, margin?: number): boolean
Parameters
Name | Description |
---|---|
| |
|
|
Returns
boolean
nearestPoint()
Parameters
Name | Description |
---|---|
|
Returns
nearestPointOnLineSegment()
from Geometry2d
Parameters
Returns
toSimpleSvgPath()
from Geometry2d
toSimpleSvgPath(): string
Prev
SnapManagerNext
StateNode