*** empty log message ***
This commit is contained in:
parent
c4a8d6e24b
commit
61ecfd7e6d
|
|
@ -785,7 +785,7 @@ rotate_mat(FLOATTYPE angle, FLOATNAME(LVecBase3) axis,
|
|||
#ifdef _DEBUG
|
||||
nassertr(length_sq != 0.0, ident_mat());
|
||||
#endif
|
||||
FLOATTYPE recip_length=1.0f/csqrt(length_sq);
|
||||
FLOATTYPE recip_length = 1.0/csqrt(length_sq);
|
||||
axis *= recip_length;
|
||||
|
||||
FLOATTYPE angle_rad=deg_2_rad(angle);
|
||||
|
|
|
|||
|
|
@ -1139,7 +1139,7 @@ rotate_mat(FLOATTYPE angle, FLOATNAME(LVecBase3) axis,
|
|||
FLOATTYPE length_sq = axis_0 * axis_0 + axis_1 * axis_1 + axis_2 * axis_2;
|
||||
// Cannot rotate about a zero-length axis.
|
||||
nassertr(length_sq != 0.0, ident_mat());
|
||||
FLOATTYPE recip_length=1.0f/csqrt(length_sq);
|
||||
FLOATTYPE recip_length = 1.0/csqrt(length_sq);
|
||||
axis *= recip_length;
|
||||
|
||||
FLOATTYPE angle_rad=deg_2_rad(angle);
|
||||
|
|
|
|||
Loading…
Reference in New Issue