flywave-mapview.camerautils.setprincipalpoint
Home > @flywave/flywave-mapview > CameraUtils > setPrincipalPoint
CameraUtils.setPrincipalPoint() function
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Sets the camera's principal point (intersection of principal ray and image plane) in NDC coordinates.
Signature:
function setPrincipalPoint(camera: THREE.PerspectiveCamera, ndcCoords: Vector2Like): void;
Parameters
Parameter | Type | Description |
|---|---|---|
camera | THREE.PerspectiveCamera | The camera. |
ndcCoords | Vector2Like | The principal point's NDC coordinates, each coordinate can have values in the open interval (-1,1). |
Returns:
void