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: Vec
area
readonly
from Geometry2d
get area(): number
b
b: Vec
bounds
readonly
from Geometry2d
get bounds(): Box
c
c: Vec
center
readonly
from Geometry2d
get center(): Vec
d
d: Vec
debugColor
optional
from Geometry2d
debugColor?: string
ignore
optional
from Geometry2d
ignore?: boolean
isClosed
from Geometry2d
isClosed: boolean
isFilled
from Geometry2d
isFilled: boolean
isLabel
from Geometry2d
isLabel: boolean
length
readonly
from Geometry2d
get length(): number
points
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): Vec
Parameters
Name | Description |
---|---|
| |
|
|
Returns
distanceToLineSegment()
from Geometry2d
Parameters
Returns
number
distanceToPoint()
from Geometry2d
distanceToPoint(point: Vec, hitInside?: boolean): number
Parameters
Name | Description |
---|---|
| |
|
|
Returns
number
getArea()
from Geometry2d
getArea(): number
getBounds()
from Geometry2d
getBounds(): Box
getLength()
getLength(precision?: number): number
Parameters
Name | Description |
---|---|
|
|
Returns
number
getSvgPathData()
getSvgPathData(first?: boolean): string
Parameters
Name | Description |
---|---|
|
|
Returns
string
getVertices()
getVertices(): Vec[]
hitTestLineSegment()
from Polyline2d
Parameters
Returns
boolean
hitTestPoint()
from Geometry2d
hitTestPoint(point: Vec, margin?: number, hitInside?: boolean): boolean
Parameters
Name | Description |
---|---|
| |
|
|
|
|
Returns
boolean
isPointInBounds()
from Geometry2d
isPointInBounds(point: Vec, margin?: number): boolean
Parameters
Name | Description |
---|---|
| |
|
|
Returns
boolean
midPoint()
midPoint(): Vec
nearestPoint()
Parameters
Name | Description |
---|---|
|
Returns
nearestPointOnLineSegment()
from Geometry2d
Parameters
Returns
toSimpleSvgPath()
from Geometry2d
toSimpleSvgPath(): string
Prev
ClickManagerNext
CubicSpline2d