random drive-by minor math optimization. No need for concern, bitshed was within acceptable limits
parent
ba7552665c
commit
9485f17bf9
|
@ -4412,8 +4412,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
|
|
||||||
double x, y, z, s, t;
|
double x, y, z, s, t;
|
||||||
|
|
||||||
s = Math.Cos(angle / 2);
|
s = Math.Cos(angle * 0.5);
|
||||||
t = Math.Sin(angle / 2); // temp value to avoid 2 more sin() calcs
|
t = Math.Sin(angle * 0.5); // temp value to avoid 2 more sin() calcs
|
||||||
x = axis.x * t;
|
x = axis.x * t;
|
||||||
y = axis.y * t;
|
y = axis.y * t;
|
||||||
z = axis.z * t;
|
z = axis.z * t;
|
||||||
|
|
Loading…
Reference in New Issue