Large worlds · function

projectionScaleOf

Pixels a metre spans at one metre's distance: the screen's half of the switch distance.

Explained in Coordinates and units.

function projectionScaleOf(fovYDeg: number, heightPx: number): number
import { projectionScaleOf } from '@driftengine/core';

Parameters

ParameterTypeDescription
fovYDegnumber
heightPxnumber