away3d / away3d-core-fp11

Away3D engine for Flash Player 11
http://www.away3d.com
Other
639 stars 274 forks source link

Projector.as DOUBLEPI constant with wrong value #648

Closed Lyve1981 closed 11 years ago

Lyve1981 commented 11 years ago

The line that is wrong is:

private static const DOUBLEPI:Number = Math.PI << 1;

In Projector.as in away3d.tools.utils

The problem here is, that numbers can't be shifted.

What AS3 does is, it converts variables that are part of the shift to integers before the shift. This results in DOUBLEPI to have the value 6.