Instead of having 3 classes that define float x,y,z under different names, it would be more efficient to have a single floatXYZ class that is aliased to position/scale/orientation with typedefs:
class position {
public:
float x;
float y;
float z;
}
class scale {
public:
float x;
float y;
float z;
}
Instead of having 3 classes that define float x,y,z under different names, it would be more efficient to have a single floatXYZ class that is aliased to position/scale/orientation with typedefs:
to
This would also remove the need for duplicating from_json definitions for functionally identical classes.