localToGlobal method
Transform point
from local coordinates into the parent coordinate space.
Effectively, this function applies the current transform to point
.
Implementation
Vector2 localToGlobal(Vector2 point) {
final m = transformMatrix.storage;
return Vector2(
m[0] * point.x + m[4] * point.y + m[12],
m[1] * point.x + m[5] * point.y + m[13],
);
}