All Packages Class Hierarchy This Package Previous Next Index
Class fundamentals.EuReal
java.lang.Object
|
+----fundamentals.EuReal
- public class EuReal
- extends Object
-
EuReal(double)
- There is no way to alter the value of a EuReal
-
compare(double)
- Compares the value to another one, supplied either as
a double or as another EuReal
-
compare(EuReal)
-
-
identical(double)
- Compares the value to another one, supplied as
a double
-
identical(EuReal)
- Compares the value to another one, supplied as
another EuReal
-
properSuccession(double, EuReal)
-
-
sign()
- Compares the value to zero
-
signOf(double)
- Finds the sign of a passed double.
-
succession(double, EuReal)
-
-
toDegrees(double)
-
-
toMouse(mouseInfo)
-
-
toRadians(double)
-
-
val()
-
EuReal
public EuReal(double t)
- There is no way to alter the value of a EuReal
- Parameters:
- t - the value
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.
toRadians
public static double toRadians(double a)
toDegrees
public static double toDegrees(double a)
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(EuReal other)
- Parameters:
- other - the other value
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
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
val
public double val()
- 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(mouseInfo info)
- Parameters:
- info - the @see mouseInfo cointaing scaling information
- Returns:
- the real scaled to pixels according to mouseInfo.
properSuccession
public boolean properSuccession(double u,
EuReal v)
- Returns:
- true if thisu>v
param u another real value
param v another real value
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