Skip to content

Class: LineCurve2D

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

constructor

new LineCurve2D(v0, v1): LineCurve2D

Parameters

NameType
v0Vector2
v1Vector2

Returns

LineCurve2D

Overrides

Curve2D.constructor

Defined in

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

Properties

curveType

curveType: CurveType

Inherited from

Curve2D.curveType

Defined in

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


v0

v0: Vector2

Defined in

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


v1

v1: Vector2

Defined in

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

Accessors

points

get points(): Vector2[]

Returns

Vector2[]

Overrides

Curve2D.points

Defined in

packages/geometry/ExtrudeGeometry/Curve/LineCurve2D.ts:15

Methods

getPoints

getPoints(divisions?): Vector2[]

Parameters

NameTypeDefault value
divisionsnumber5

Returns

Vector2[]

Inherited from

Curve2D.getPoints

Defined in

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


getPoint

getPoint(t, result?): Vector2

Parameters

NameType
tnumber
resultVector2

Returns

Vector2

Overrides

Curve2D.getPoint

Defined in

packages/geometry/ExtrudeGeometry/Curve/LineCurve2D.ts:19


getPointAt

getPointAt(u, result?): Vector2

Parameters

NameType
unumber
resultVector2

Returns

Vector2

Defined in

packages/geometry/ExtrudeGeometry/Curve/LineCurve2D.ts:29


getTangent

getTangent(t, result?): Vector2

Parameters

NameType
tnumber
resultVector2

Returns

Vector2

Defined in

packages/geometry/ExtrudeGeometry/Curve/LineCurve2D.ts:33


getTangentAt

getTangentAt(u, result?): Vector2

Parameters

NameType
unumber
resultVector2

Returns

Vector2

Defined in

packages/geometry/ExtrudeGeometry/Curve/LineCurve2D.ts:39


copyFrom

copyFrom(other): void

Parameters

NameType
otherLineCurve2D

Returns

void

Defined in

packages/geometry/ExtrudeGeometry/Curve/LineCurve2D.ts:43