mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
Ref T111, normalize utility functions
This commit is contained in:
committed by
Mathew Sutcliffe
parent
4e45496431
commit
9445bd56a3
@@ -96,8 +96,11 @@ namespace BlackMisc
|
||||
//! Radians to degrees
|
||||
static double rad2deg(double radians);
|
||||
|
||||
//! Normalize: -180< degrees ≤180
|
||||
static double normalizeDegrees180(double degrees);
|
||||
|
||||
//! Normalize: 0≤ degrees <360
|
||||
static double normalizeDegrees(double degrees);
|
||||
static double normalizeDegrees360(double degrees);
|
||||
|
||||
//! Random number between low and high
|
||||
static int randomInteger(int low, int high);
|
||||
|
||||
Reference in New Issue
Block a user