Skip to content

Commit

Permalink
all is double now, and clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Oekn5w authored and lordofhyphens committed Dec 2, 2019
1 parent ea8a8ee commit e82c6ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions xs/src/libslic3r/TransformationMatrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,6 @@ TransformationMatrix TransformationMatrix::mat_rotation(double angle_rad, const

TransformationMatrix TransformationMatrix::mat_rotation(Vectorf3 origin, Vectorf3 target)
{
// TODO: there is a lot of float <-> double conversion going on here

TransformationMatrix mat;
double length_sq = origin.x*origin.x + origin.y*origin.y + origin.z*origin.z;
double rec_length;
Expand Down Expand Up @@ -333,7 +331,7 @@ TransformationMatrix TransformationMatrix::mat_rotation(Vectorf3 origin, Vectorf
}
}
else
{// not colinear, cross represents rotation axis so that angle is positive
{// not colinear, cross represents rotation axis so that angle is (0, 180)
// dot's vectors have previously been normalized, so nothing to do except arccos
double angle = acos(dot);

Expand Down

0 comments on commit e82c6ec

Please sign in to comment.