XML Feeds

.

[jitter] Re: how to rotate a camera?

Wesley Smith wesley.hoke at gmail.com
Wed Jan 2 11:52:39 MST 2008


> that patch is great, there is only one small bug in the normalization
> formula. (get vector length)
> expr (sqrt(pow($f1\,2)))+(sqrt(pow($f2\,2)))+(sqrt(pow($f3\,2)))
> should be
> expr sqrt(pow($f1\,2)+pow($f2\,2)+pow($f3\,2))
> marius.

expr sqrt($f1*$f1+$f2*$f2+$f3*$f3)

will be faster as it avoids the somewhat expensive pow calculation.

wes


More information about the jitter mailing list