Cubic class Null safety
A cubic polynomial mapping of the unit interval.
The Curves class contains some commonly used cubic curves:
- Curves.fastLinearToSlowEaseIn
- Curves.ease
- Curves.easeIn
- Curves.easeInToLinear
- Curves.easeInSine
- Curves.easeInQuad
- Curves.easeInCubic
- Curves.easeInQuart
- Curves.easeInQuint
- Curves.easeInExpo
- Curves.easeInCirc
- Curves.easeInBack
- Curves.easeOut
- Curves.linearToEaseOut
- Curves.easeOutSine
- Curves.easeOutQuad
- Curves.easeOutCubic
- Curves.easeOutQuart
- Curves.easeOutQuint
- Curves.easeOutExpo
- Curves.easeOutCirc
- Curves.easeOutBack
- Curves.easeInOut
- Curves.easeInOutSine
- Curves.easeInOutQuad
- Curves.easeInOutCubic
- Curves.easeInOutQuart
- Curves.easeInOutQuint
- Curves.easeInOutExpo
- Curves.easeInOutCirc
- Curves.easeInOutBack
- Curves.fastOutSlowIn
- Curves.slowMiddle
The Cubic class implements third-order Bézier curves.
See also:
- Curves, where many more predefined curves are available.
- CatmullRomCurve, a curve which passes through specific values.
- Inheritance
-
- Object
- ParametricCurve<
double> - Curve
- Cubic
Constructors
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-onlyinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
transform(
double t) → double -
Returns the value of the curve at point
t
.inherited -
transformInternal(
double t) → double -
Returns the value of the curve at point
t
.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited