project_files/HedgewarsMobile/Classes/CGPointUtils.h
changeset 6832 fae8fd118da9
parent 6700 e04da46ee43c
child 6908 896ed2afcfb8
equal deleted inserted replaced
6831:f848120b3fcc 6832:fae8fd118da9
    12  * GNU General Public License for more details.
    12  * GNU General Public License for more details.
    13  *
    13  *
    14  * You should have received a copy of the GNU General Public License
    14  * You should have received a copy of the GNU General Public License
    15  * along with this program; if not, write to the Free Software
    15  * along with this program; if not, write to the Free Software
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    17  *
       
    18  * File created on 03/10/2010.
       
    19  */
    17  */
    20 
    18 
    21 
    19 
    22 #import <CoreGraphics/CoreGraphics.h>
    20 #import <CoreGraphics/CoreGraphics.h>
       
    21 
    23 
    22 
    24 #define degreesToRadians(x) ( M_PI * x / 180.0)
    23 #define degreesToRadians(x) ( M_PI * x / 180.0)
    25 #define radiansToDegrees(x) (180.0 * x / M_PI )
    24 #define radiansToDegrees(x) (180.0 * x / M_PI )
    26 
    25 
    27 #define HWX(x) (int)(x-screen.size.width/2)/HW_zoomFactor()
    26 #define HWX(x) (int)(x-screen.size.width/2)/HW_zoomFactor()