Geometry2d
See source codeTable of contents
abstract class Geometry2d {}Constructor
Constructs a new instance of the Geometry2d class
Parameters
| Name | Description |
|---|---|
|
Properties
area
readonly
get area(): numberbounds
readonly
get bounds(): Boxcenter
readonly
get center(): VecdebugColor
optional
debugColor?: stringignore
optional
ignore?: booleanisClosed
isClosed: booleanisFilled
isFilled: booleanisLabel
isLabel: booleanlength
readonly
get length(): numbervertices
readonly
get vertices(): Vec[]Methods
distanceToLineSegment()
Parameters
Returns
numberdistanceToPoint()
distanceToPoint(point: Vec, hitInside?: boolean): numberParameters
| Name | Description |
|---|---|
| |
| |
Returns
numbergetArea()
getArea(): numbergetBounds()
getBounds(): BoxgetLength()
getLength(): numbergetSvgPathData()
abstract getSvgPathData(first: boolean): stringParameters
| Name | Description |
|---|---|
| |
Returns
stringgetVertices()
abstract getVertices(): Vec[]hitTestLineSegment()
Parameters
Returns
booleanhitTestPoint()
hitTestPoint(point: Vec, margin?: number, hitInside?: boolean): booleanParameters
| Name | Description |
|---|---|
| |
| |
| |
Returns
booleanisPointInBounds()
isPointInBounds(point: Vec, margin?: number): booleanParameters
| Name | Description |
|---|---|
| |
| |
Returns
booleannearestPoint()
Parameters
| Name | Description |
|---|---|
|
Returns
nearestPointOnLineSegment()
Parameters
Returns
toSimpleSvgPath()
toSimpleSvgPath(): stringPrev
FontManagerNext
Group2d