API: forms

Interface: QuadraticSegment

lifecycle-kit


lifecycle-kit / forms / QuadraticSegment

Interface: QuadraticSegment

Defined in: forms/path.ts:96

A quadratic Bézier — one control point.

Kept distinct from cubic rather than promoted to one, even though every quadratic has an exact cubic equivalent. Promotion would mean two paths that a consumer wrote differently compare equal, which sounds harmless until a test that meant to pin "this is the cheap curve" silently stops doing so.

Properties

control

readonly control: Vec2

Defined in: forms/path.ts:98


kind

readonly kind: "quadratic"

Defined in: forms/path.ts:97


to

readonly to: Vec2

Defined in: forms/path.ts:99