Edge2d
See source codeTable of contents
Extends Geometry2d.
class Edge2d extends Geometry2d {}Constructor
Constructs a new instance of the Edge2d class
Parameters
Properties
area
readonly
from Geometry2d
get area(): numberbounds
readonly
from Geometry2d
get bounds(): Boxcenter
readonly
from Geometry2d
get center(): Vecd
d: VecdebugColor
optional
from Geometry2d
debugColor?: stringend
end: Vecignore
optional
from Geometry2d
ignore?: booleanisClosed
from Geometry2d
isClosed: booleanisFilled
from Geometry2d
isFilled: booleanisLabel
from Geometry2d
isLabel: booleanlength
readonly
from Geometry2d
get length(): numberstart
start: Vecu
u: Vecul
ul: numbervertices
readonly
from Geometry2d
get vertices(): Vec[]Methods
distanceToLineSegment()
from Geometry2d
Parameters
Returns
numberdistanceToPoint()
from Geometry2d
distanceToPoint(point: Vec, hitInside?: boolean): numberParameters
| Name | Description |
|---|---|
| |
| |
Returns
numbergetArea()
from Geometry2d
getArea(): numbergetBounds()
from Geometry2d
getBounds(): BoxgetLength()
getLength(): numbergetSvgPathData()
getSvgPathData(first?: boolean): stringParameters
| Name | Description |
|---|---|
| |
Returns
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
booleanmidPoint()
midPoint(): VecnearestPoint()
Parameters
| Name | Description |
|---|---|
|
Returns
nearestPointOnLineSegment()
from Geometry2d
Parameters
Returns
toSimpleSvgPath()
from Geometry2d
toSimpleSvgPath(): stringPrev
CubicSpline2dNext
EdgeScrollManager