Curve

LineCurve

A curve representing a 2d line segment.

Constructor

LineCurve(v1 : Vector2, v2 : Vector2)

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

Properties

See the base Curve class for common properties.

.isLineCurve : Boolean

Used to check whether this or derived classes are LineCurves. Default is true.

You should not change this, as it used internally for optimisation.

.v1 : Vector2

The start point.

.v2 : Vector2

The end point

Methods

See the base Curve class for common methods.

Source

For more info on how to obtain the source code of this module see this page.