All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fundamentals.EuReal

java.lang.Object
   |
   +----fundamentals.EuReal

public class EuReal
extends Object

Constructor Index

 o EuReal(double)
There is no way to alter the value of a EuReal

Method Index

 o compare(double)
Compares the value to another one, supplied either as a double or as another EuReal
 o compare(EuReal)
 o identical(double)
Compares the value to another one, supplied as a double
 o identical(EuReal)
Compares the value to another one, supplied as another EuReal
 o properSuccession(double, EuReal)
 o sign()
Compares the value to zero
 o signOf(double)
Finds the sign of a passed double.
 o succession(double, EuReal)
 o toDegrees(double)
 o toMouse(mouseInfo)
 o toRadians(double)
 o val()

Constructors

 o EuReal
 public EuReal(double t)
There is no way to alter the value of a EuReal

Parameters:
t - the value

Methods

 o signOf
 public static int signOf(double t)
Finds the sign of a passed double. All values in the range [-@see epsilon,@see epsilon] lead to the sign 0.

Returns:
-1, 0 or 1 depending on the sign of a double.
 o toRadians
 public static double toRadians(double a)
 o toDegrees
 public static double toDegrees(double a)
 o compare
 public int compare(double other)
Compares the value to another one, supplied either as a double or as another EuReal

Parameters:
other - the other value
Returns:
1 when this>other-epsilon, 0 when |this-other|other+epsilon
 o compare
 public int compare(EuReal other)
Parameters:
other - the other value
 o identical
 public boolean identical(double other)
Compares the value to another one, supplied as a double

Parameters:
other - the other value
Returns:
true if they are close up to @see epsilon
 o identical
 public boolean identical(EuReal other)
Compares the value to another one, supplied as another EuReal

Parameters:
other - the other value
Returns:
true if they are close up to @see epsilon
 o val
 public double val()
Returns:
the value as a double
 o sign
 public int sign()
Compares the value to zero

Returns:
1 when this>-epsilon, 0 when |this|epsilon
 o toMouse
 public int toMouse(mouseInfo info)
Parameters:
info - the @see mouseInfo cointaing scaling information
Returns:
the real scaled to pixels according to mouseInfo.
 o properSuccession
 public boolean properSuccession(double u,
                                 EuReal v)
Returns:
true if thisu>v param u another real value param v another real value
 o succession
 public boolean succession(double u,
                           EuReal v)
Returns:
true if this<=u<=v or if this=>u=>v param u another real value param v another real value

All Packages  Class Hierarchy  This Package  Previous  Next  Index