getProjectionMatrix method

  1. @override
Matrix4 getProjectionMatrix(
  1. double aspectRatio, {
  2. Vector2? jitter,
})
override

Resolves size against a unit-height view of aspectRatio. An OrthographicSize.pixelsPerUnit size needs the view's real size, which the engine supplies through getProjectionMatrixForViewport.

Implementation

@override
Matrix4 getProjectionMatrix(double aspectRatio, {Vector2? jitter}) =>
    getProjectionMatrixForViewport(ui.Size(aspectRatio, 1.0), jitter: jitter);