Computes the rotation of the camera according to yaw and pitch in degrees. The computations
hinge on the current projection and target, because yaw and pitch are defined in
tangent space of the target point.
Note:yaw == 0 && pitch == 0 will north up the map and you will look downwards onto the
map.
Parameters
projection: Projection
Current projection.
target: GeoCoordinates
The camera target.
yawDeg: number
Yaw in degrees, counter-clockwise (as opposed to azimuth), starting north.
Computes the rotation of the camera according to yaw and pitch in degrees. The computations hinge on the current
projection
andtarget
, because yaw and pitch are defined in tangent space of the target point.Note:
yaw == 0 && pitch == 0
will north up the map and you will look downwards onto the map.