3DPhoneInit Actionscript
Table of contents | Previous document | Download 3DPhoneInit.as | SWF!T Homepage RCSfile: 3DPhoneInit.as,v Revision: 1.1 Date: 2003/02/13 21:23:47
Copyright 2003 Orgdot AS. All Rights Reserved. http://dev.swfit.com
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Some init code for the 3D phone script - precomputations to shave off a few CPU cycles.
author Olaf Havnes
version Revision: 1.1 Date: 2003/02/13 21:23:47
since SWFIT1.0
cw = mov_width - 2 * x_min;
ch = mov_height - 2 * y_min;
x_cnt = x_min + cw / 2;
y_cnt = y_min + ch / 2;
x_max = x_min + cw;
y_max = y_min + ch;
cw_2 = cw / 2;
ch_2 = ch / 2;
xwa = - (x_min + cw_2) / cw_2;
ywa = (y_min + ch_2) / ch_2;
|
|