Cubic class abstract

Implementers

Constructors

Cubic()
const
Cubic.circularArc(double centerX, double centerY, double x0, double y0, double x1, double y1)
factory
Cubic.from(double anchor0X, double anchor0Y, double control0X, double control0Y, double control1X, double control1Y, double anchor1X, double anchor1Y)
const
factory
Cubic.straightLine(double x0, double y0, double x1, double y1)
factory

Properties

anchor0 → Point
no setter
anchor0X double
no setter
anchor0Y double
no setter
anchor1 → Point
no setter
anchor1X double
no setter
anchor1Y double
no setter
control0 → Point
no setter
control0X double
no setter
control0Y double
no setter
control1 → Point
no setter
control1X double
no setter
control1Y double
no setter
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reverse() Cubic
split(double t) → (Cubic, Cubic)
Returns two Cubics, created by splitting this curve at the given distance of t between the original starting and ending anchor points.
toString() String
A string representation of this object.
override
transformed(PointTransformer f) Cubic

Operators

operator *(double x) Cubic
operator +(Cubic o) Cubic
operator /(double x) Cubic
operator ==(Object other) bool
The equality operator.
override

Static Methods

interpolate(Cubic c1, Cubic c2, double progress) Cubic