Click here to Skip to main content
15,881,588 members
Articles / Mobile Apps / iPhone

Panorama 360 iPod Touch & iPhone

Rate me:
Please Sign up or sign in to vote.
3.10/5 (10 votes)
11 May 2010LGPL38 min read 186.4K   3.7K   11  
Panorama viewer library for iPhone & iPod touch
/*
 * This file is part of the PanoramaGL library.
 *
 *  Author: Javier Baez <javbaezga@gmail.com>
 *
 *  $Id$
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; version 3 of
 * the License
 *
 * This software 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */

#import "PLStructs.h"

@interface PLMath : NSObject 

+ (float)distanceBetweenPoints:(CGPoint)point1 :(CGPoint)point2;

+ (float)valueInRange:(float)value range:(PLRange)range;

+ (float)normalizeAngle:(float)angle range:(PLRange)range;
+ (float)normalizeFov:(float)fov range:(PLRange)range;

+ (BOOL)isPowerOfTwo:(int)value;

@end

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)


Written By
Ecuador Ecuador
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions