Method MakeLine
MakeLine(Vector2, Vector2)
Builds a line segment.
Declaration
public static BezierSegment MakeLine(Vector2 from, Vector2 to)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | from | The starting position of the line segment |
Vector2 | to | The ending position of the line segment |
Returns
Type | Description |
---|---|
BezierSegment | A straight line BezierSegment |
Remarks
The control points are spaced out equally to maintain a constant speed on t