Skip to content

Class: CubicBezierCurve2D

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

constructor

new CubicBezierCurve2D(v0, v1, v2, v3): CubicBezierCurve2D

Parameters

NameType
v0Vector2
v1Vector2
v2Vector2
v3Vector2

Returns

CubicBezierCurve2D

Overrides

Curve2D.constructor

Defined in

packages/geometry/ExtrudeGeometry/Curve/CubicBezierCurve2D.ts:10

Properties

v0

v0: Vector2

Defined in

packages/geometry/ExtrudeGeometry/Curve/CubicBezierCurve2D.ts:5


v1

v1: Vector2

Defined in

packages/geometry/ExtrudeGeometry/Curve/CubicBezierCurve2D.ts:6


v2

v2: Vector2

Defined in

packages/geometry/ExtrudeGeometry/Curve/CubicBezierCurve2D.ts:7


v3

v3: Vector2

Defined in

packages/geometry/ExtrudeGeometry/Curve/CubicBezierCurve2D.ts:8


curveType

curveType: CurveType

Inherited from

Curve2D.curveType

Defined in

packages/geometry/ExtrudeGeometry/Curve/Curve2D.ts:11

Accessors

points

get points(): Vector2[]

Returns

Vector2[]

Overrides

Curve2D.points

Defined in

packages/geometry/ExtrudeGeometry/Curve/CubicBezierCurve2D.ts:18

Methods

getPoint

getPoint(t, result?): Vector2

Parameters

NameType
tnumber
resultVector2

Returns

Vector2

Overrides

Curve2D.getPoint

Defined in

packages/geometry/ExtrudeGeometry/Curve/CubicBezierCurve2D.ts:22


copyFrom

copyFrom(other): void

Parameters

NameType
otherCubicBezierCurve2D

Returns

void

Defined in

packages/geometry/ExtrudeGeometry/Curve/CubicBezierCurve2D.ts:30


getPoints

getPoints(divisions?): Vector2[]

Parameters

NameTypeDefault value
divisionsnumber5

Returns

Vector2[]

Inherited from

Curve2D.getPoints

Defined in

packages/geometry/ExtrudeGeometry/Curve/Curve2D.ts:23

Released under the MIT License