matrix static method

Matrix4 matrix(
  1. num pv
)

Returns a perspective-like Matrix4.

Implementation

static Matrix4 matrix(num pv) {
  return Matrix4(
    1.0, 0.0, 0.0, 0.0, //
    0.0, 1.0, 0.0, 0.0, //
    0.0, 0.0, 1.0, pv * 0.001, //
    0.0, 0.0, 0.0, 1.0,
  );
}