forceToPoint static method

Matrix4 forceToPoint(
  1. Offset offset
)

Returns a matrix that transforms every point to offset.

Implementation

static Matrix4 forceToPoint(Offset offset) {
  return Matrix4.identity()
    ..setRow(0, Vector4(0, 0, 0, offset.dx))
    ..setRow(1, Vector4(0, 0, 0, offset.dy));
}