ExpressiveAngleMeasurer class

Measures a cubic by the angle it sweeps around (centerX, centerY): the measurer graphics-shapes 1.0.1 (what Compose material3 1.5.0-alpha29 runs on) matches morphs with.

Implemented types

Constructors

ExpressiveAngleMeasurer(double centerX, double centerY)
A measurer about (centerX, centerY).
const

Properties

centerX → double
The x coordinate of the centre the angle is taken about.
final
centerY → double
The y coordinate of the centre the angle is taken about.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

findCubicCutPoint(ExpressiveShapeCubic c, double m) → double
Given a cubic and a measure that should be between 0 and the value returned by measureCubic (if not, it will be capped), finds the parameter t of the cubic at which that measure is reached.
override
measureCubic(ExpressiveShapeCubic c) → double
Returns size of given cubic, according to however the implementation wants to measure the size (angle, length, etc). It has to be greater or equal to 0.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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