GetCameraProjectionMatrix method

  1. @override
MatrixD GetCameraProjectionMatrix(
  1. StructPointer<Camera3DD> camera,
  2. double aspect
)
override

Returns the projection matrix for camera with the given aspect ratio.

Implementation

@override
MatrixD GetCameraProjectionMatrix(
  StructPointer<Camera3DD> camera,
  double aspect,
) => $.Matrix$.Extract1(
  (p) => _ffi.GetCameraProjectionMatrix(
    camera.asNativePointer(),
    aspect.toDouble(),
  ).toDart(p.asNativePointer()),
);