Skip to content

@jdultra/ultra-globe


@jdultra/ultra-globe / getCameraLLHYawPitchRoll

Function: getCameraLLHYawPitchRoll()

getCameraLLHYawPitchRoll(camera): Object

Defined in: utils/CameraHelper.d.ts:14

Gets the camera's Longitude, Latitude, Height, Yaw, Pitch, and Roll from its position and orientation.

Parameters

camera

PerspectiveCamera

The camera to extract parameters from.

Returns

Object

An object containing:

  • llh: A Vector3 where:
  • x = Longitude in degrees
  • y = Latitude in degrees
  • z = Height in meters
  • yaw: Yaw angle in degrees
  • pitch: Pitch angle in degrees
  • roll: Roll angle in degrees