Skip to main content

Curve

LineCurve

A curve representing a 2d line segment.

Constructor

LineCurve

function LineCurve( v1: Vector2, v2: Vector2 ): void;  

v1 – The start point.
v2 - The end point.

Properties

See the base Curve class for common properties.

v1

v1: Vector2;  

The start point.

v2

v2: Vector2;  

The end point

Methods

See the base Curve class for common methods.

Source

src/extras/curves/LineCurve.js