ExpressiveCornerFeature class
Corners contain the list of cubic curves which describe how the corner is rounded (or not), and a flag indicating whether the corner is convex. A regular polygon has all convex corners, while a star polygon generally (but not necessarily) has both convex (outer) and concave (inner) corners.
- Inheritance
-
- Object
- ExpressiveFeature
- ExpressiveCornerFeature
Constructors
-
ExpressiveCornerFeature(List<
ExpressiveShapeCubic> _cubics, {bool convex = true}) -
A corner made of the given curves, convex unless
_convexis false.const
Properties
- convex → bool
-
Whether the corner is convex.
final
-
cubics
→ List<
ExpressiveShapeCubic> -
Returns unmodifiable list of ExpressiveShapeCubic.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isConcaveCorner → bool
-
Whether this Feature is a concave corner (inward indentation in a shape).
no setteroverride
- isConvexCorner → bool
-
Whether this Feature is a convex corner (outward indentation in a shape).
no setteroverride
- isCorner → bool
-
Whether this Feature is a corner.
no setteroverride
- isEdge → bool
-
Whether this Feature is an Edge with no inward or outward indentation.
no setteroverride
- isIgnorableFeature → bool
-
Whether this Feature gets ignored in the Morph mapping. See
ExpressiveFeature.buildIgnorableFeature for more details
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
-
reversed(
) → ExpressiveFeature -
Returns a new ExpressiveFeature with the points that define the shape of this
ExpressiveFeature in reversed order.
override
-
toString(
) → String -
A string representation of this object.
override
-
transformed(
ExpressivePointTransformer f) → ExpressiveFeature -
Transforms the points in this ExpressiveFeature with the given ExpressivePointTransformer
and returns a new ExpressiveFeature.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited