Luxar Viewer API Documentation - v2026.9.22
GitHub
Preparing search index...
utils/camera-utils
updateCameraAspect
Function updateCameraAspect
updateCameraAspect
(
camera
:
LuxarCamera
,
width
:
number
,
height
:
number
)
:
void
Update camera projection for new viewport dimensions.
Perspective: updates aspect ratio
Orthographic: scales frustum bounds proportionally Calls updateProjectionMatrix() internally.
Parameters
camera
:
LuxarCamera
width
:
number
height
:
number
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
GitHub
Luxar Viewer API Documentation - v2026.9.22
Loading...
Update camera projection for new viewport dimensions.