The Rotated Release
This point release fixes important bugs in rotation calculations in morph::Quaternion
and morph::TransformMatrix
and also adds the ability to set angle by axis/angle in the Quaternion
constructor and compute rotations by quaternion multiplication. For example:
morph::Quaternion<double> q (u_x, morph::mathconst<double>::pi);
morph::vec<double, 3> v_in = { 2, 6, 0 };
morph::vec<double, 3> v_out = q * v_in;
I changed the name of one internally used method: Quaternion::initFromAxisAngle(vec<float>, float)
is now called set_rotation
.
It also incorporates some improvements to GridVisual by @fabien-colonnier including the ability to place a border around selected pixels in the Grid. Thanks Fabien!
Other minor changes include github actions for Apple Mac computers and some tweaks to spherical coordinates relating to Geodesics (GeodesicVisual
).
What's Changed
- Adds a cartesian to spherical conversion by @sebjameswml in #220
- Adds a routine to compute the spherical coords of the Geodesic. by @sebjameswml in #222
- Adds an extents function to find the range of x, y and z positions of… by @sebjameswml in #223
- Changes 4 variables from float to bool, making sense. by @sebjameswml in #224
- Add feature in GridVisual to draw border around all pixels and selected pixels by @fabien-colonnier in #225
- Adds the ability to multiply Quaternion and vec (3 or 4D) by @sebjameswml in #226
- Feature/further quaternion tweaks by @sebjameswml in #228
- 229 transformmatrix opposite rotation by @sebjameswml in #231
Full Changelog: v3.0...v3.1