GhostMatrix class final
The ghost's reused matrix (spec 09b D6, 09c D5): the placement transform
P is handed in by the tool, which computes it on pointer, key, camera
and re-arm events (spec 09c D12); its linear part is written only
when one of its six doubles differs from the last (update); a paint
(forOrigin) writes only the translation less the rebase origin.
Constructors
Properties
- computations → int
-
How many times a new
Pwas taken: a test's count (spec D6).no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- placement → Transform2?
-
The current placement transform, or null before the first update.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storage → Float64List
-
The column-major storage handed to
canvas.transform, reused for the holder's life.final
Methods
-
forOrigin(
Vector2 origin) → Float64List -
storage with its translation set for
origin(world − origin, the framepaintWorldOverlaypaints in). Call update first. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
{required Transform2 placement}) → void -
Sets the placement; takes
placementand rewrites the linear part only when one of its six doubles differs from the last call's (stored values, compared exactly with==, so-0.0equals0.0). An equal placement keeps the earlier object.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited