discontinuedPackage vector_graphics_compiler_plus has been discontinued and replaced by vector_graphics_compiler.

CubicToCommand class

A command describing a cubic Bezier command from the current point to x3,y3 using control points x1,y1 and x2,y2.

Inheritance

Constructors

CubicToCommand(double x1, double y1, double x2, double y2, double x3, double y3)
Creates a new cubic Bezier command from the current point to x3,y3 using control points x1,y1 and x2,y2.
const
CubicToCommand.fromPoints(Point control1, Point control2, Point end)
Creates a cubic command from the current point to end using control1 and control2 as control points.

Properties

controlPoint1 → Point
A Point representation of x1,y1, the first control point.
no setter
controlPoint2 → Point
A Point representation of x2,y2, the second control point.
no setter
endPoint → Point
A Point representation of x3,y3, the end point of the curve.
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
type → PathCommandType
The type of this path command.
finalinherited
x1 → double
The absolute offset of the first control point for this path from the x axis.
final
x2 → double
The absolute offset of the second control point for this path from the x axis.
final
x3 → double
The absolute offset of the destination point for this path from the x axis.
final
y1 → double
The absolute offset of the first control point for this path from the y axis.
final
y2 → double
The absolute offset of the second control point for this path from the x axis.
final
y3 → double
The absolute offset of the destination point for this path from the y axis.
final

Methods

computeLength(Point start) → double
Computes an approximation of the arc length of this cubic starting from start.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFlutterString() → String
A representation of this path command for dart:ui.
override
toString() → String
A string representation of this object.
override
transformed(AffineMatrix matrix) → CubicToCommand
Returns a new path command transformed by matrix.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

subdivide(Point start, Point control1, Point control2, Point end, double t) → List<Point>
Subdivides the cubic curve described by start, control1, control2, end.