Definition at line 40 of file nrrotate.h. Referenced by rotate_degrees(). { /** \todo * In the usual case that vec is a unit vector (within rounding error), * dividing by len_sq is either a noop or numerically harmful. * Make a unit_rotate class (or the like) that knows its length is 1. */ double const len_sq = dot(vec, vec); return rotate( Point(vec[X], vec[Y]) / len_sq ); }
