@jdultra/ultra-globe / setCameraFromLLHYawPitchRollFov
Function: setCameraFromLLHYawPitchRollFov()
setCameraFromLLHYawPitchRollFov(
camera,llh,yaw,pitch,roll,fov,far):void
Defined in: utils/CameraHelper.d.ts:34
Sets the video camera's position and orientation based on Longitude, Latitude, Height, Yaw, Pitch, Roll, and FOV.
Parameters
camera
any
llh
Vector3
A Vector3 where:
- x = Longitude in degrees
- y = Latitude in degrees
- z = Height in meters
yaw
number
Yaw angle in degrees. (0 points north ccw rotation)
pitch
number
Pitch angle in degrees (-90 to 90)
roll
number
Roll angle in degrees.
- Rotation around the Forward vector (local Y-axis).
fov
number
The camera's vertical field of view in degrees.
far
number
The max distance to project the texture.
Returns
void