QuadraticBezier class
A quadratic Bezier curve defined by three control points.
The curve starts at start, is pulled toward control, and ends at end.
Constructors
- QuadraticBezier({required Point start, required Point control, required Point end})
-
const
Properties
- boundingBox → Rectangle
-
Approximate bounding box by sampling points
no setter
- control → Point
-
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< QuadraticBezier> -
Split curve at parameter
tinto two quadratic beziers -
toString(
) → String -
A string representation of this object.
override
-
translate(
{double x = 0, double y = 0}) → QuadraticBezier - Translate the curve
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override