CubicBezier class

A cubic Bezier curve defined by four control points.

The curve starts at start, is pulled toward control1 and control2, and ends at end.

Constructors

CubicBezier({required Point start, required Point control1, required Point control2, required Point end})
const

Properties

boundingBox Rectangle
Approximate bounding box
no setter
control1 Point
First control point
final
control2 Point
Second control point
final
end Point
End point of the curve
final
hashCode int
The hash code for this object.
no setteroverride
length double
Approximate length by summing small line segments
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start Point
Start point of the curve
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pointAt(double t) Point
Get point on curve at parameter t (0 = start, 1 = end)
split(double t) List<CubicBezier>
Split curve at parameter t into two cubic beziers (de Casteljau)
toString() String
A string representation of this object.
override
translate({double x = 0, double y = 0}) CubicBezier
Translate the curve

Operators

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