Class: CubicBezierPath
Constructors
Methods
- getPathType
- isClosed
- isValid
- clear
- computeApproxLength
- computeApproxParamPerUnitLength
- computeApproxNormParamPerUnitLength
- interpolatePoints
- setControlVertices
- getPoint
- getPointNorm
- getTangent
- getTangentNorm
- computeClosestParam
- computeClosestNormParam
Constructors
constructor
• new CubicBezierPath(controlVertices
, t?
): CubicBezierPath
Parameters
Name | Type | Default value |
---|---|---|
controlVertices | Vector3 [] | undefined |
t | CubicBezierType | CubicBezierType.Open |
Returns
Defined in
src/math/CubicBezierPath.ts:26
Methods
getPathType
▸ getPathType(): CubicBezierType
Returns
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
Name | Type |
---|---|
knots | Vector3 [] |
t | CubicBezierType |
Returns
void
Defined in
src/math/CubicBezierPath.ts:83
setControlVertices
▸ setControlVertices(cvs
, t
): void
Parameters
Name | Type |
---|---|
cvs | Vector3 [] |
t | CubicBezierType |
Returns
void
Defined in
src/math/CubicBezierPath.ts:179
getPoint
▸ getPoint(t
): Vector3
Parameters
Name | Type |
---|---|
t | number |
Returns
Defined in
src/math/CubicBezierPath.ts:194
getPointNorm
▸ getPointNorm(t
): Vector3
Parameters
Name | Type |
---|---|
t | number |
Returns
Defined in
src/math/CubicBezierPath.ts:224
getTangent
▸ getTangent(t
): Vector3
Parameters
Name | Type |
---|---|
t | number |
Returns
Defined in
src/math/CubicBezierPath.ts:230
getTangentNorm
▸ getTangentNorm(t
): Vector3
Parameters
Name | Type |
---|---|
t | number |
Returns
Defined in
src/math/CubicBezierPath.ts:258
computeClosestParam
▸ computeClosestParam(pos
, paramThreshold
): number
Parameters
Name | Type |
---|---|
pos | Vector3 |
paramThreshold | number |
Returns
number
Defined in
src/math/CubicBezierPath.ts:265
computeClosestNormParam
▸ computeClosestNormParam(pos
, paramThreshold
): number
Parameters
Name | Type |
---|---|
pos | Vector3 |
paramThreshold | number |
Returns
number