UnitBezier

data class UnitBezier(val x1: Double = 0.0, val y1: Double = 0.0, val x2: Double = 0.0, val y2: Double = 0.0)

A timing curve from (0, 0) to (1, 1), with the control points (x1, y1) and (x2, y2).

x1 and x2 are between 0 and 1.

See mln_unit_bezier in the C API reference.

Constructors

Link copied to clipboard
constructor(x1: Double = 0.0, y1: Double = 0.0, x2: Double = 0.0, y2: Double = 0.0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val x1: Double
Link copied to clipboard
val x2: Double
Link copied to clipboard
val y1: Double
Link copied to clipboard
val y2: Double