![]() |
Utilities
Utilities header only library
|
Definition of an arbitrary space. More...
Public Member Functions | |
| SpaceDefinition (Units t_units, BaseAxis t_up, BaseAxis t_forward, Handedness t_handedness) | |
| glm::mat3 | MakeTransform3To (const SpaceDefinition &target_space) const |
| Creates transformation matrix that defines transition from this space to the target_space. | |
| glm::mat4 | MakeTransform4To (const SpaceDefinition &target_space) const |
| Creates transformation matrix that defines transition from this space to the target_space. | |
| glm::mat4 | Convert (const glm::mat4 &other_transform, const SpaceDefinition &other_space) const |
| Creates transformation matrix for this space, from transformation created for other space. | |
| bool | operator== (SpaceDefinition const &b) const |
| bool | operator!= (SpaceDefinition const &b) const |
| virtual void | Serialize (nlohmann::json &json) const |
| Converts this to nlohmann::json structure. | |
| virtual void | Serialize (std::ostream &outs) const override |
| virtual bool | Deserialize (std::istream &ins) override |
Public Member Functions inherited from utils::BasisDefinition | |
| BasisDefinition (BaseAxis t_up, BaseAxis t_forward, Handedness t_handedness) | |
| glm::mat3 | CreateBasisMat3 () const |
| Creates a basis matrix that defines this space. | |
| glm::mat4 | CreateBasisMat4 () const |
| Creates a basis matrix that defines this space. | |
| glm::mat3 | MakeTransform3To (const BasisDefinition &target_basis) const |
| Creates transformation matrix that defines transition from this basis to the target_basis. | |
| glm::mat4 | MakeTransform4To (const BasisDefinition &target_basis) const |
| Creates transformation matrix that defines transition from this basis to the target_basis. | |
| glm::mat4 | Convert (const glm::mat4 &other_transform, const BasisDefinition &other_basis) const |
| Creates transformation matrix for this basis, from transformation in other basis. | |
| bool | operator== (BasisDefinition const &b) const |
| bool | operator!= (BasisDefinition const &b) const |
| std::string | ToString () const |
| Convert this to JSON string. | |
Data Fields | |
| SpaceCategory | category { SpaceCategory::custom } |
| Units | units { Units::mm } |
Data Fields inherited from utils::BasisDefinition | |
| std::string | id { "custom" } |
| BaseAxis | up { BaseAxis::positive_y } |
| BaseAxis | forward { BaseAxis::positive_z } |
| Handedness | handedness { Handedness::right } |
Definition of an arbitrary space.