COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
Quaternion, scalar last, using imaginary elements. More...
#include <vector.h>
Public Member Functions | |
qcomplex () | |
qcomplex (double ti, double tj, double tk, double tr) | |
json11::Json | to_json () const |
Convert class contents to JSON object. More... | |
void | from_json (const string &s) |
Set class contents from JSON string. More... | |
Public Attributes | |
double | i = 0. |
double | j = 0. |
double | k = 0. |
double | r = 0. |
Quaternion, scalar last, using imaginary elements.
Can be thought of as i, j, k elements, followed by scalar.
|
inline |
|
inline |
|
inline |
Set class contents from JSON string.
Parses the provided JSON-formatted string and sets the class data. String should be formatted like the string returned from to_json()
s | JSON-formatted string to set class contents to |
double qcomplex::i = 0. |
double qcomplex::j = 0. |
double qcomplex::k = 0. |
double qcomplex::r = 0. |