CubicSegment class
A cubic bezier curve segment.
Uses two control points (controlPoint1 and controlPoint2) to define a more complex curve shape. This is the standard bezier curve used in most vector graphics.
Used for:
- Smooth bezier connections
- Complex curved paths
- Inheritance
-
- Object
- PathSegment
- CubicSegment
Constructors
Properties
- controlPoint1 → Offset
-
First control point (influences the curve near the start).
final
- controlPoint2 → Offset
-
Second control point (influences the curve near the end).
final
- curvature → double
-
The curvature factor used to create this segment (0.0 to 1.0).
Higher values mean sharper curves that need more hit test segments.
final
- end → Offset
-
The endpoint of this segment.
finalinherited
- generateHitTestRects → bool
-
Whether to generate hit test rectangles for this segment.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getHitTestRects(
Offset start, double tolerance) → List< Rect> -
Generates hit test rectangles for this segment.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited