Skip to content

Class: CubicBezierPath

Constructors

Methods

Constructors

constructor

new CubicBezierPath(controlVertices, t?): CubicBezierPath

Parameters

NameTypeDefault value
controlVerticesVector3[]undefined
tCubicBezierTypeCubicBezierType.Open

Returns

CubicBezierPath

Defined in

src/math/CubicBezierPath.ts:26

Methods

getPathType

getPathType(): CubicBezierType

Returns

CubicBezierType

Defined in

src/math/CubicBezierPath.ts:30


isClosed

isClosed(): boolean

Returns

boolean

Defined in

src/math/CubicBezierPath.ts:34


isValid

isValid(): boolean

Returns

boolean

Defined in

src/math/CubicBezierPath.ts:41


clear

clear(): void

Returns

void

Defined in

src/math/CubicBezierPath.ts:45


computeApproxLength

computeApproxLength(): number

Returns

number

Defined in

src/math/CubicBezierPath.ts:52


computeApproxParamPerUnitLength

computeApproxParamPerUnitLength(): number

Returns

number

Defined in

src/math/CubicBezierPath.ts:73


computeApproxNormParamPerUnitLength

computeApproxNormParamPerUnitLength(): number

Returns

number

Defined in

src/math/CubicBezierPath.ts:78


interpolatePoints

interpolatePoints(knots, t): void

Parameters

NameType
knotsVector3[]
tCubicBezierType

Returns

void

Defined in

src/math/CubicBezierPath.ts:83


setControlVertices

setControlVertices(cvs, t): void

Parameters

NameType
cvsVector3[]
tCubicBezierType

Returns

void

Defined in

src/math/CubicBezierPath.ts:179


getPoint

getPoint(t): Vector3

Parameters

NameType
tnumber

Returns

Vector3

Defined in

src/math/CubicBezierPath.ts:194


getPointNorm

getPointNorm(t): Vector3

Parameters

NameType
tnumber

Returns

Vector3

Defined in

src/math/CubicBezierPath.ts:224


getTangent

getTangent(t): Vector3

Parameters

NameType
tnumber

Returns

Vector3

Defined in

src/math/CubicBezierPath.ts:230


getTangentNorm

getTangentNorm(t): Vector3

Parameters

NameType
tnumber

Returns

Vector3

Defined in

src/math/CubicBezierPath.ts:258


computeClosestParam

computeClosestParam(pos, paramThreshold): number

Parameters

NameType
posVector3
paramThresholdnumber

Returns

number

Defined in

src/math/CubicBezierPath.ts:265


computeClosestNormParam

computeClosestNormParam(pos, paramThreshold): number

Parameters

NameType
posVector3
paramThresholdnumber

Returns

number

Defined in

src/math/CubicBezierPath.ts:290