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) => _ffi.MatrixPerspective(
    fovY,
    aspect,
    nearPlane,
    farPlane,
  ).toDart(p.asNativePointer()),
);