Closed gustavojra closed 3 years ago
Yeah, this is what happens when you don't convert from degrees to radians.......
I will fix this and include in my next push.
Ok, makes sense. So two things
In Julia, a function f
normally has another version fd
e.g. cosd
for degrees. Maybe you could have a rotarion_matrixd
? Or just add a keyword argument.
Not really a bug why the tag? :laughing:
This issue has been fixed as there are now three functions for generating rotation matrices. rotation_matrix
which accepts an angle in radians, rotation_matrixd
which accepts an angle in degrees, and Cn
which creates an n-fold rotation and is a nicer way to write things when looking for symmetry.
I tried the following:
Since
v
has an angle of 45 deg with either x or y, should this rotation about z yield a vector along x (or y depending on the direction that it is rotating?)