project_files/HedgewarsMobile/Classes/CGPointUtils.h
changeset 4976 088d40d8aba2
parent 4476 4bf74e158f44
child 6666 0e2f5b81cbf2
equal deleted inserted replaced
4974:078cd026a7b1 4976:088d40d8aba2
     1 /*
     1 /*
     2  *  CGPointUtils.h
     2  * Hedgewars-iOS, a Hedgewars port for iOS devices
     3  *  PinchMe
     3  * Copyright (c) 2009-2011 Vittorio Giovara <vittorio.giovara@gmail.com>
     4  *
     4  *
     5  *  Created by Jeff LaMarche on 8/2/08.
     5  * This program is free software; you can redistribute it and/or modify
     6  *  Copyright 2008 __MyCompanyName__. All rights reserved.
     6  * it under the terms of the GNU General Public License as published by
       
     7  * the Free Software Foundation; version 2 of the License
     7  *
     8  *
       
     9  * This program is distributed in the hope that it will be useful,
       
    10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    12  * GNU General Public License for more details.
       
    13  *
       
    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
       
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
       
    17  *
       
    18  * File created on 03/10/2010.
     8  */
    19  */
       
    20 
     9 
    21 
    10 #import <CoreGraphics/CoreGraphics.h>
    22 #import <CoreGraphics/CoreGraphics.h>
    11 
    23 
    12 #define degreesToRadians(x) ( M_PI * x / 180.0)
    24 #define degreesToRadians(x) ( M_PI * x / 180.0)
    13 #define radiansToDegrees(x) (180.0 * x / M_PI )
    25 #define radiansToDegrees(x) (180.0 * x / M_PI )