generatePositionAndOrientationRelativeToCenteredTarget

external fun generatePositionAndOrientationRelativeToCenteredTarget(targetLonLatDegAltMeters: Coordinates, targetHeadingPitchRollDeg: Tuple3d, cameraHeadingPitchDegDistanceMeters: Tuple3d, resultPosition: Tuple3d, resultOrientation: Tuple4d): Int

Generate a position and orientation relative to, and oriented toward/centered on, a target position which is relative to the focused sphere (orientation relative to target).

Parameters

targetLonLatDegAltMeters

desired lon, lat and alt for target

targetHeadingPitchRollDeg

desired heading, pitch and roll for target

cameraHeadingPitchDegDistanceMeters

desired heading pitch and distance for camera

resultPosition

computed position

resultOrientation

computed orientation