MorphMass class sealed
A raw SDF mass poured into a skin - contentless geometry fused into the contour alongside the pieces (MorphSkin.extraMasses). A mass has no morph identity: it cannot fly, it only adds to the shape. Sealed: MorphMass.box and MorphMass.bridge are the whole vocabulary.
Constructors
- MorphMass.box(Rect rect, {double radius})
-
A rounded-box mass over
rect.radiusis the corner radius, clamped to the half-extents - a large radius yields a stadium.constfactory - MorphMass.bridge(Offset a, Offset b, {required double radius})
-
An explicit bridge: a capsule pipe of half-width
radiusbetweenaandb, for fusing two distant masses when proximity fusion is not enough.constfactory
Properties
Methods
-
distance(
Offset p) → double -
Signed distance from
pto the mass surface (negative inside). -
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