Skip to content

Class: Bezier3D

3D Bezier Curve

Constructors

Methods

Constructors

constructor

new Bezier3D(): Bezier3D

Returns

Bezier3D

Methods

calculateCubicBezierPoint

calculateCubicBezierPoint(t, p0, c1, c2, p3): Vector3

get cubic curve point value from t at bezier data

Parameters

NameTypeDescription
tnumberinterval value
p0Vector3start point
c1Vector3left control point
c2Vector3right control point
p3Vector3end point

Returns

Vector3

cubic curve point

Defined in

src/math/Bezier3D.ts:18


bezierPoint

bezierPoint(t, p0, c1, p1): Vector3

get curve point from three point bezier curve

Parameters

NameTypeDescription
tnumberinterval value
p0Vector3start point
c1Vector3contrl point
p1Vector3end point

Returns

Vector3

get bezier point at curve

Defined in

src/math/Bezier3D.ts:50