GetCameraProjectionMatrix method

Matrix GetCameraProjectionMatrix(
  1. Camera3D camera,
  2. num aspect
)

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

Implementation

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