fundamentals
Class EuReal

java.lang.Object
  |
  +--fundamentals.EuReal
Direct Known Subclasses:
EuAngle

public class EuReal
extends java.lang.Object

Describe class EuReal here.


Field Summary
static double N
          Describe constant N here.
protected  double value
          Describe variable value here.
 
Constructor Summary
EuReal()
          There is no way to alter the value of a EuReal
EuReal(double t)
          There is no way to alter the value of a EuReal
 
Method Summary
 int compare(double other)
          Compares the value to another one, supplied either as a double or as another EuReal
 int compare(fundamentals.EuReal other)
          Describe compare method here.
 boolean identical(double other)
          Compares the value to another one, supplied as a double.
 boolean identical(fundamentals.EuReal other)
          Compares the value to another one, supplied as another EuReal.
 boolean isDummy()
          Describe isDummy method here.
 boolean properSuccession(double u, fundamentals.EuReal v)
          Describe properSuccession method here.
 int sign()
          Compares the value to zero
static int signOf(double t)
          Finds the sign of a passed double.
 boolean succession(double u, fundamentals.EuReal v)
          Describe succession method here.
 boolean succession(fundamentals.EuReal u, double v)
          Describe succession method here.
static double toDegrees(double a)
          Describe toDegrees method here.
 int toMouse(fundamentals.mouseInfo info)
          Describe toMouse method here.
 double toMouseReal(fundamentals.mouseInfo info)
          Describe toMouseReal method here.
static double toRadians(double a)
          Describe toRadians method here.
 double val()
          Describe val method here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

N

public static final double N
Describe constant N here.

See Also:
Constant Field Values

value

protected double value
Describe variable value here.

Constructor Detail

EuReal

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

Parameters:
t - the value
Throws:
UserException - if an error occurs

EuReal

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

Method Detail

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.

Parameters:
t - a double value
Returns:
-1, 0 or 1 depending on the sign of a double.

toRadians

public static double toRadians(double a)
Describe toRadians method here.

Parameters:
a - a double value
Returns:
a double value

toDegrees

public static double toDegrees(double a)
Describe toDegrees method here.

Parameters:
a - a double value
Returns:
a double value

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

compare

public int compare(fundamentals.EuReal other)
Describe compare method here.

Parameters:
other - the other value
Returns:
an int value

identical

public boolean identical(double other)
Compares the value to another one, supplied as a double. Will return false if this is a dummy value.

Parameters:
other - the other value
Returns:
true if they are close up to @see epsilon

identical

public boolean identical(fundamentals.EuReal other)
Compares the value to another one, supplied as another EuReal. Will return false if this or other is a dummy value.

Parameters:
other - the other value
Returns:
true if they are close up to @see epsilon

val

public double val()
Describe val method here.

Returns:
the value as a double

sign

public int sign()
Compares the value to zero

Returns:
1 when this>-epsilon, 0 when |this|epsilon

toMouse

public int toMouse(fundamentals.mouseInfo info)
Describe toMouse method here.

Parameters:
info - the @see mouseInfo cointaing scaling information
Returns:
the real scaled to pixels according to mouseInfo.

toMouseReal

public double toMouseReal(fundamentals.mouseInfo info)
Describe toMouseReal method here.

Parameters:
info - the @see mouseInfo cointaing scaling information
Returns:
the real scaled to pixels according to mouseInfo.

properSuccession

public boolean properSuccession(double u,
                                fundamentals.EuReal v)
Describe properSuccession method here.

Parameters:
u - a double value
v - an EuReal value
Returns:
true if thisu>v param u another real value param v another real value

succession

public boolean succession(double u,
                          fundamentals.EuReal v)
Describe succession method here.

Parameters:
u - a double value
v - an EuReal value
Returns:
true if this<=u<=v or if this=>u=>v param u another real value param v another real value (as EuReal)

succession

public boolean succession(fundamentals.EuReal u,
                          double v)
Describe succession method here.

Parameters:
u - an EuReal value
v - a double value
Returns:
true if this<=u<=v or if this=>u=>v param u another real value (as EuReal) param v another real value

isDummy

public boolean isDummy()
Describe isDummy method here.

Returns:
a boolean value