# | Line 198 | Line 198 | int meas /* distance measure (radians, absolute, rela | |
---|---|---|
198 | double volen, dotprod, sint, cost; | |
199 | int i; | |
200 | ||
201 | + | VCOPY(normtarg, vtarg); /* in case vtarg==vres */ |
202 | if (vres != vorig) | |
203 | VCOPY(vres, vorig); | |
204 | if (t == 0.0) | |
205 | return(VLEN(vres)); /* no rotation requested */ | |
206 | if ((volen = normalize(vres)) == 0.0) | |
207 | return(0.0); | |
207 | – | VCOPY(normtarg, vtarg); |
208 | if (normalize(normtarg) == 0.0) | |
209 | return(0.0); /* target vector is zero */ | |
210 | dotprod = DOT(vres, normtarg); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |