update method
void
update({
- required Transform2 placement,
Sets the placement; takes placement and rewrites the linear part only
when one of its six doubles differs from the last call's (stored
values, compared exactly with ==, so -0.0 equals 0.0). An equal
placement keeps the earlier object.
Implementation
void update({required Transform2 placement}) {
final p = _p;
if (p != null &&
placement.a == p.a &&
placement.b == p.b &&
placement.c == p.c &&
placement.d == p.d &&
placement.e == p.e &&
placement.f == p.f) {
return;
}
_p = placement;
_computations++;
_writeLinear(storage, placement);
}