COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
3x3 element cartesian matrix More...
#include <matrix.h>
Public Member Functions | |
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 | |
cvector | r1 |
Row 1. More... | |
cvector | r2 |
Row 2. More... | |
cvector | r3 |
Row 3. More... | |
3x3 element cartesian matrix
3 cvector elements representing 3 rows of a matrix in a right handed cartesian system
|
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 |
cvector cmatrix::r1 |
Row 1.
cvector cmatrix::r2 |
Row 2.
cvector cmatrix::r3 |
Row 3.