Constructor
new LineCurve( v1 : Vector2, v2 : Vector2 )
Constructs a new line curve.
| v1 |
The start point. |
| v2 |
The end point. |
Properties
.isLineCurve : boolean (readonly)
This flag can be used for type testing.
Default is true.
Methods
.getPoint( t : number, optionalTarget : Vector2 ) : Vector2
Returns a point on the line.
| t |
A interpolation factor representing a position on the line. Must be in the range |
| optionalTarget |
The optional target vector the result is written to. |
- Overrides: Curve#getPoint
- Returns: The position on the line.