TeeChartPHP
[ class tree: TeeChartPHP ] [ index: TeeChartPHP ] [ all elements ]

Class: MathUtils

Source Location: /misc/MathUtils.php

Class Overview


MathUtils class


Author(s):

Version:

  • 1.0

Copyright:

  • (c) 1995-2008 by Steema Software SL. All Rights Reserved. <info@steema.com>

Methods



Class Details

[line 16]
MathUtils class

Description: Math utility procedures




Tags:

author:  
version:  1.0
copyright:  (c) 1995-2008 by Steema Software SL. All Rights Reserved. <info@steema.com>
link:  http://www.steema.com


[ Top ]


Class Methods


static method atan2 [line 227]

static double atan2( y $y, x $x)

Note: This method has been implemented here in MathUtils class because J2ME Math class does not include it.

Returns Math.atan2.




Tags:

access:  public


Parameters:

y   $y   double
x   $x   double

[ Top ]

static method calcDistance [line 146]

static void calcDistance( $x0, $y0, $x1, $y1)



Tags:

access:  public


Parameters:

   $x0  
   $y0  
   $x1  
   $y1  

[ Top ]

static method compareDoubles [line 200]

static int compareDoubles( d1 $d1, d2 $d2)

TODO REMOVE THIS FUNCTION BCOS BCCCOMP IS USED INSTEAD Compares Double d1 with d2. Returns 0 if both are equal.

Returns -1 if d1 is lower than d2, and 1 if d1 is bigger than d2.




Tags:

access:  public


Parameters:

d1   $d1   double
d2   $d2   double

[ Top ]

static method exp [line 254]

static double exp( a $a)

Note: This method has been implemented here in MathUtils class because J2ME Math class does not include it.

Returns Math.exp.




Tags:

access:  public


Parameters:

a   $a   double

[ Top ]

static method getPiStep [line 78]

static void getPiStep( )

A constant holding the smallest positive nonzero value of type

  1. double
, 2<sup>-1074</sup>. It is equal to the hexadecimal floating-point literal
  1. 0x0.0000000000001P-1022
and also equal to
  1. Double.longBitsToDouble(0x1L)
.




Tags:

access:  public


[ Top ]

static method log [line 95]

static double log( value $value)

Note: This function has been added to MathUtils because J2ME Math class does not include it.

Returns Math.log of value parameter.




Tags:

access:  public


Parameters:

value   $value   double

[ Top ]

static method pointAtDistance [line 124]

static TeePoint pointAtDistance( value $aFrom, value $aTo, value $aDist)

Returns TeePoint



Tags:

access:  public


Parameters:

value   $aFrom   TeePoint
value   $aTo   TeePoint
value   $aDist   int

[ Top ]

static method pointInLineTolerance [line 183]

static void pointInLineTolerance( $p, $x0, $y0, $x1, $y1, $tolerance)



Tags:

access:  public


Parameters:

   $p  
   $x0  
   $y0  
   $x1  
   $y1  
   $tolerance  

[ Top ]

static method pow [line 241]

static double pow( a $a, b $b)

Note: This method has been implemented here in MathUtils class because J2ME Math class does not include it.

Returns Math.pow.




Tags:

access:  public


Parameters:

a   $a   double
b   $b   double

[ Top ]

static method round [line 112]

static int round( value $value)

Returns the integer nearest to "value" parameter



Tags:

access:  public


Parameters:

value   $value   double

[ Top ]

static method sqr [line 82]

static void sqr( $x)



Tags:

access:  public


Parameters:

   $x  

[ Top ]

static method _log [line 99]

static void _log( $x, $numBase)



Tags:

access:  public


Parameters:

   $x  
   $numBase  

[ Top ]

method __get [line 21]

void __get( $property)



Tags:

access:  public


Parameters:

   $property  

[ Top ]

method __set [line 28]

void __set( $property, $value)



Parameters:

   $property  
   $value  

[ Top ]


Documentation generated on Wed, 16 Jun 2010 12:07:03 +0200 by phpDocumentor 1.4.1