Convert the given point from the global coodinate system to the local coordinate system for this box.
If the transform from global coordinates to local coordinates is degenerate, this function returns Point.origin.
Source
Point globalToLocal(Point point) { final Matrix4 transform = _collectPaintTransform(); double det = transform.invert(); if (det == 0.0) return Point.origin; return MatrixUtils.transformPoint(transform, point); }