Stadium2d
Table of contents
Extends Geometry2d.
class Stadium2d extends Geometry2d {}
Constructs a new instance of the Stadium2d class
Parameters
| Name | Description |
|---|---|
| |
Properties
a: Arc2d
from
Geometry2dget area(): number
b: Edge2d
from
Geometry2dget bounds(): Box
c: Arc2d
from
Geometry2dget center(): Vec
config: Omit<Geometry2dOptions, 'isClosed'> & {
height: number
width: number
}
d: Edge2d
from
Geometry2ddebugColor?: string
h: number
from
Geometry2dignore?: boolean
from
Geometry2disClosed: boolean
from
Geometry2disFilled: boolean
from
Geometry2disLabel: boolean
from
Geometry2dget length(): number
from
Geometry2dget vertices(): Vec[]
w: number
Methods
from
Geometry2ddistanceToLineSegment(A: Vec, B: Vec): number
Parameters
Returns
number
from
Geometry2ddistanceToPoint(point: Vec, hitInside?: boolean): number
Parameters
| Name | Description |
|---|---|
| |
| |
Returns
number
from
Geometry2dgetArea(): number
getBounds(): Box
getLength(): number
getSvgPathData(): string
getVertices(): Vec[]
hitTestLineSegment(A: Vec, B: Vec): boolean
Parameters
Returns
boolean
from
Geometry2dhitTestPoint(point: Vec, margin?: number, hitInside?: boolean): boolean
Parameters
| Name | Description |
|---|---|
| |
| |
| |
Returns
boolean
from
Geometry2disPointInBounds(point: Vec, margin?: number): boolean
Parameters
| Name | Description |
|---|---|
| |
| |
Returns
boolean
nearestPoint(A: Vec): Vec
Parameters
| Name | Description |
|---|---|
| |
Returns
Vec
from
Geometry2dnearestPointOnLineSegment(A: Vec, B: Vec): Vec
Parameters
Returns
Vec
from
Geometry2dtoSimpleSvgPath(): string

