[core] CameraOptions receives and outputs angle and pitch as degrees, not radians

This commit is contained in:
Bruno de Oliveira Abinader
2018-10-16 15:53:27 +02:00
parent 0c6b1629ef
commit 98c36fc06e
11 changed files with 36 additions and 38 deletions

View File

@@ -27,11 +27,10 @@ struct CameraOptions {
levels. */
optional<double> zoom;
/** Bearing, measured in radians counterclockwise from true north. Wrapped
to [−π rad, π rad). */
/** Bearing, measured in degrees from true north. Wrapped to [0, 360). */
optional<double> angle;
/** Pitch toward the horizon measured in radians, with 0 rad resulting in a
/** Pitch toward the horizon measured in degrees , with 0 deg resulting in a
two-dimensional map. */
optional<double> pitch;
};