P2

Description

Name

class Tinman.Curve.P2

Derived from

Curve

A curve hat interpolates through a sequence of 2D control points.

Fields / Required

points

Type

Vec2[]

Constraint

# != null

The control points of the curve.

Fields / Optional

continuity

Type

Continuity

Default

Continuity.Tangent

The desired continuity of the curve.

Fields / External

length

Type

number

The length of the curve, treating control points as 3D points.