Segment2D

fun Segment2D(start: Vector2, end: Vector2, corner: Boolean = true): Segment2D(source)

Linear segment constructor.

Parameters

start

The starting anchor point.

end

The ending anchor point.


fun Segment2D(start: Vector2, c0: Vector2, end: Vector2, corner: Boolean = true): Segment2D(source)

Quadratic Bézier segment constructor.

Parameters

start

The starting anchor point.

c0

The control point.

end

The ending anchor point.


fun Segment2D(start: Vector2, c0: Vector2, c1: Vector2, end: Vector2, corner: Boolean = true): Segment2D(source)

Cubic Bézier segment constructor.

Parameters

start

The starting anchor point.

c0

The first control point.

c1

The second control point

end

The ending anchor point.