Cubic class

A cubic polynomial mapping of the unit interval.

The Curves class contains some commonly used cubic curves:

The Cubic class implements third-order Bézier curves.

Inheritance

Constructors

Cubic(double a, double b, double c, double d)
Creates a cubic curve. [...]
const

Properties

a double
The x coordinate of the first control point. [...]
final
b double
The y coordinate of the first control point. [...]
final
c double
The x coordinate of the second control point. [...]
final
d double
The y coordinate of the second control point. [...]
final
flipped Curve
Returns a new curve that is the reversed inversion of this one. [...]
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toString() String
Returns a string representation of this object.
override
transform(double t) double
Returns the value of the curve at point t. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited