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. radius is the corner radius, clamped to the half-extents - a large radius yields a stadium.
const
factory
MorphMass.bridge(Offset a, Offset b, {required double radius})
An explicit bridge: a capsule pipe of half-width radius between a and b, for fusing two distant masses when proximity fusion is not enough.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
outerRect Rect
The mass's own bounds, blend excluded: padding by k is added by LiquidField.bounds.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

distance(Offset p) double
Signed distance from p to 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