Skip to content

Threepp.LineCurve

2D line curve

A curve representing a straight line between two points.

Members

Constructors

Properties

Methods


LineCurve

Constructor

Arguments

Arguments Default Description
v1   Start point (Vector2 or [x, y]).
v2   End point (Vector2 or [x, y]).

Description

Constructor


v1

Property \ Access: r/w

Description

Start point (read-only)


v2

Property \ Access: r/w

Description

End point (read-only)


getLength

Method

Description

Gets the length of the curve


getPoint

Method

Arguments

Arguments Default Description
t  

Description

Gets the point at parameter t (0-1)


getPointAt

Method

Arguments

Arguments Default Description
u  

Description

Gets the point at arc-length parameter u


getTangent

Method

Arguments

Arguments Default Description
t  

Description

Gets the tangent vector