GetCameraProjectionMatrix method

MatrixD GetCameraProjectionMatrix(
  1. Camera3DD camera,
  2. num aspect
)

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

Implementation

MatrixD GetCameraProjectionMatrix(
  Camera3DD camera,
  num aspect,
) => run(
  () => _debugLabels.GetCameraProjectionMatrix(camera, aspect),
  () => _flat.GetCameraProjectionMatrix(
    $.Camera3D$.Ref1(camera),
    aspect.toDouble(),
  ),
);