COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
Quaternion, scalar last, using vector elements. More...
#include <vector.h>
Public Member Functions | |
qlast () | |
qlast (double tq1, double tq2, double tq3, double tq4) | |
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 | q1 = 0. |
double | q2 = 0. |
double | q3 = 0. |
double | q4 = 0. |
Quaternion, scalar last, using vector elements.
Can be thought of as vector elements, q1, q2, q3, followed by scalar q4.
|
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 qlast::q1 = 0. |
double qlast::q2 = 0. |
double qlast::q3 = 0. |
double qlast::q4 = 0. |