| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- {========================================================================}
- {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
- {========================================================================}
- {= All Rights Reserved =}
- {========================================================================}
- {= D 01099 Dresden = Tel.: +0351-8012255 =}
- {= Loewenstr.7a = info@swiftsoft.de =}
- {========================================================================}
- {= Actual versions on http://www.swiftsoft.de/mmtools.html =}
- {========================================================================}
- {= This code is for reference purposes only and may not be copied or =}
- {= distributed in any format electronic or otherwise except one copy =}
- {= for backup purposes. =}
- {= =}
- {= No Delphi Component Kit or Component individually or in a collection=}
- {= subclassed or otherwise from the code in this unit, or associated =}
- {= .pas, .dfm, .dcu, .asm or .obj files may be sold or distributed =}
- {= without express permission from SwiftSoft. =}
- {= =}
- {= For more licence informations please refer to the associated =}
- {= HelpFile. =}
- {========================================================================}
- {= $Date: 20.01.1998 - 18:00:00 $ =}
- {========================================================================}
- unit MMMath;
- {$I COMPILER.INC}
- interface
- const
- M_PI = 3.14159265358979323846;
- M2_PI = 2 * M_PI;
-
- function MinR(a, b: extended): extended;
- function MaxR(a, b: extended): extended;
- function MinMaxR(x, min, max: extended): extended;
- function LimitR(x, min, max: extended): extended;
- function ModR(x,y: extended): extended;
- function ArcCos(x: extended): extended; { IN: |X| <= 1 OUT: [0..PI] radians }
- function ArcSin(x: extended): extended; { IN: |X| <= 1 OUT: [-PI/2..PI/2] radians }
- function ArcTan2(y, x: extended): extended;
- function Tan(x: extended): extended;
- function Cotan(x: extended): extended; { 1 / tan(X), X <> 0 }
- function Ceil(x: extended): longint;
- function Floor(x: extended): Longint;
- function Log(x: extended): extended;
- function Log2(x: extended): extended;
- function Log10(x: extended): extended;
- function Pow(x,n: extended): extended;
-
- implementation
|