Isomet Modular Synthesiser (iMS) API
v1.4.2
iMS API
|
Type Definition for all operations that require an angle specification in degrees. More...
#include <include/IMSTypeDefs.h>
Public Member Functions | |
Degrees (double arg) | |
Construct a Degrees object from a double argument and check its value is within the range 0.0 <= arg < 360.0. If not, the object is still constructed, but the value is wrapped around to fit within the range. More... | |
Degrees & | operator= (double arg) |
Assignment of a double argument in degrees to an existing Degrees object. More... | |
operator double () const | |
Return a double representing the Degrees object's value. More... | |
Static Public Member Functions | |
static unsigned int | RenderAsImagePoint (const IMSSystem &, const Degrees) |
Used internally by the library to convert a Degrees object into a hardware-dependent integer representation used by the Image for RF Output phase. More... | |
static unsigned int | RenderAsCompensationPoint (const IMSSystem &, const Degrees) |
Used internally by the library to convert a Degrees object into a hardware-dependent integer representation used by the Compensation Table for channel phase increment. More... | |
static unsigned int | RenderAsCalibrationTone (const IMSSystem &, const Degrees) |
Used internally by the library to convert a Degrees object into a hardware-dependent integer representation used by the Calibration Tone for channel phase increment. More... | |
Type Definition for all operations that require an angle specification in degrees.
Internally, the Degrees value is stored as a double precision variable and is limited to sit within the range 0.0 <= Percent < 360.0.
|
inline |
Construct a Degrees object from a double argument and check its value is within the range 0.0 <= arg < 360.0. If not, the object is still constructed, but the value is wrapped around to fit within the range.
[in] | arg | The percentage value |
|
inline |
Return a double representing the Degrees object's value.
|
inline |
Assignment of a double argument in degrees to an existing Degrees object.
The double argument of the assigner must be within the range 0.0 <= arg < 360.0 else it will be wrapped around to fit within the range.
prints:
|
static |
Used internally by the library to convert a Degrees object into a hardware-dependent integer representation used by the Calibration Tone for channel phase increment.
Not intended for use in application code
|
static |
Used internally by the library to convert a Degrees object into a hardware-dependent integer representation used by the Compensation Table for channel phase increment.
Not intended for use in application code