MatrixPerspective method

  1. @override
MatrixD MatrixPerspective(
  1. double fovY,
  2. double aspect,
  3. double nearPlane,
  4. double farPlane,
)
override

Get perspective projection matrix

NOTE: Fovy angle must be provided in radians

Implementation

@override
MatrixD MatrixPerspective(
  double fovY,
  double aspect,
  double nearPlane,
  double farPlane,
) => $.Matrix$.Extract1(
  (p) => _wasm.MatrixPerspective(
    p.toJS,
    fovY.toJS,
    aspect.toJS,
    nearPlane.toJS,
    farPlane.toJS,
  ),
);