String and math fixes

- Added missing static String constructors
- Implemented String operator for math types
- Added XYZ and YXZ euler angles methods
- Fixed wrong det checks in Basis
- Fixed operator Quat in Basis
This commit is contained in:
Marc Gilleron
2018-01-23 00:24:23 +01:00
parent 411d2f6d1f
commit 4f4bb8deff
11 changed files with 270 additions and 67 deletions

View File

@@ -340,8 +340,7 @@ Transform2D Transform2D::interpolate_with(const Transform2D& p_transform, real_t
Transform2D::operator String() const {
//return String(String()+elements[0]+", "+elements[1]+", "+elements[2]);
return String(); // @Todo
return String(String() + elements[0] + ", " + elements[1] + ", " + elements[2]);
}
}