CubicBezier2d
See source codeTable of contents
Extends Polyline2d.
class CubicBezier2d extends Polyline2d {}Constructor
Constructs a new instance of the CubicBezier2d class
Parameters
| Name | Description |
|---|---|
| |
Properties
a
a: Vecarea
readonly
from Geometry2d
get area(): numberb
b: Vecbounds
readonly
from Geometry2d
get bounds(): Boxc
c: Veccenter
readonly
from Geometry2d
get center(): Vecd
d: VecdebugColor
optional
from Geometry2d
debugColor?: stringignore
optional
from Geometry2d
ignore?: booleanisClosed
from Geometry2d
isClosed: booleanisFilled
from Geometry2d
isFilled: booleanisLabel
from Geometry2d
isLabel: booleanlength
readonly
from Geometry2d
get length(): numberpoints
from Polyline2d
points: Vec[]segments
readonly
from Polyline2d
get segments(): Edge2d[]vertices
readonly
from Geometry2d
get vertices(): Vec[]Methods
GetAtT()
static
static GetAtT(segment: CubicBezier2d, t: number): VecParameters
| Name | Description |
|---|---|
| |
| |
Returns
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(precision?: number): numberParameters
| Name | Description |
|---|---|
| |
Returns
numbergetSvgPathData()
getSvgPathData(first?: boolean): stringParameters
| Name | Description |
|---|---|
| |
Returns
stringgetVertices()
getVertices(): Vec[]hitTestLineSegment()
from Polyline2d
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
ClickManagerNext
CubicSpline2d