Luky/Geo/LLTrigonometry.h

00001 //
00002 //  LLTrigonometry.h
00003 //  MacTrek
00004 //
00005 //  Created by Aqua on 29/04/2006.
00006 //  Copyright 2006 Luky Soft. All rights reserved.
00007 //
00008 
00009 #import <Cocoa/Cocoa.h>
00010 
00011 
00012 @interface LLTrigonometry : NSObject {
00013     
00014 }
00015 
00016 + (LLTrigonometry*) defaultInstance;
00017 - (int)hypotOfBase:(int) base heigth:(int)heigth;
00018 - (float)angleDegBetween:(NSPoint)p1 andPoint:(NSPoint)p2;
00019 
00020 // fast sin/cos base on a char angle, thus every +1 is approx +1.4 deg.
00021 - (double) cos:(int) i;
00022 - (double) sin:(int) i;
00023 - (int) cosLength;
00024 - (int) sinLength;
00025 - (bool) rect:(NSRect) r1 isEqualToRect:(NSRect) r2;
00026 
00027 @end

Generated on Sat Aug 26 21:14:15 2006 for MacTrek by  doxygen 1.4.7