Arc2d
Table of contents
Extends Geometry2d
.
class Arc2d extends Geometry2d {}
Constructs a new instance of the Arc2d
class
Parameters
Name | Description |
---|---|
|
|
Properties
angleEnd: number
angleStart: number
from
Geometry2d
get area(): number
from
Geometry2d
get bounds(): Box
from
Geometry2d
get center(): Vec
from
Geometry2d
debugColor?: string
end: Vec
from
Geometry2d
ignore?: boolean
from
Geometry2d
isClosed: boolean
from
Geometry2d
isFilled: boolean
from
Geometry2d
isLabel: boolean
largeArcFlag: number
from
Geometry2d
get length(): number
measure: number
radius: number
start: Vec
sweepFlag: number
from
Geometry2d
get vertices(): Vec[]
Methods
from
Geometry2d
distanceToLineSegment(A: Vec, B: Vec): number
Parameters
Returns
number
from
Geometry2d
distanceToPoint(point: Vec, hitInside?: boolean): number
Parameters
Name | Description |
---|---|
|
|
|
|
Returns
number
from
Geometry2d
getArea(): number
from
Geometry2d
getBounds(): Box
getLength(): number
getSvgPathData(first?: boolean): string
Parameters
Name | Description |
---|---|
|
|
Returns
string
getVertices(): Vec[]
hitTestLineSegment(A: Vec, B: Vec): boolean
Parameters
Returns
boolean
from
Geometry2d
hitTestPoint(point: Vec, margin?: number, hitInside?: boolean): boolean
Parameters
Name | Description |
---|---|
|
|
|
|
|
|
Returns
boolean
from
Geometry2d
isPointInBounds(point: Vec, margin?: number): boolean
Parameters
Name | Description |
---|---|
|
|
|
|
Returns
boolean
nearestPoint(point: Vec): Vec
Parameters
Name | Description |
---|---|
|
|
Returns
Vec
from
Geometry2d
nearestPointOnLineSegment(A: Vec, B: Vec): Vec
Parameters
Returns
Vec
from
Geometry2d
toSimpleSvgPath(): string