generatePositionAndOrientationTargetCentered

external fun generatePositionAndOrientationTargetCentered(targetLonLatDegAltMeters: Coordinates, 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 sphere).

Parameters

targetLonLatDegAltMeters

desired lon, lat and alt for target

cameraHeadingPitchDegDistanceMeters

desired heading, pitch and distance for camera

resultPosition

computed position

resultOrientation

computed orientation