setAsOrthographic method
Set the matrix to use a orthographic view.
Implementation
void setAsOrthographic(
double nearPlaneWidth,
double aspectRatio,
double zNear,
double zFar,
) {
final top = nearPlaneWidth / 2.0;
final right = top * aspectRatio;
setOrthographicMatrix(this, -right, right, -top, top, zNear, zFar);
}