com.turtle3d.util
Class ExtremalValue

java.lang.Object
  extended by com.turtle3d.util.ExtremalValue

public class ExtremalValue
extends java.lang.Object

Helper class for finding minimal and maximal value.

Author:
Marek Paterczyk

Constructor Summary
ExtremalValue()
           
ExtremalValue(ExtremalValue extremalValue)
           
ExtremalValue(float value)
           
 
Method Summary
 float getDifferenceValue()
           
 float getMaximumValue()
           
 float getMiddleValue()
           
 float getMinimumValue()
           
 boolean setValue(float value)
          Sets value only if it's the new extremum.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExtremalValue

public ExtremalValue(float value)

ExtremalValue

public ExtremalValue()

ExtremalValue

public ExtremalValue(ExtremalValue extremalValue)
Method Detail

setValue

public boolean setValue(float value)
Sets value only if it's the new extremum.

Parameters:
value -
Returns:

getMaximumValue

public float getMaximumValue()

getMinimumValue

public float getMinimumValue()

getMiddleValue

public float getMiddleValue()

getDifferenceValue

public float getDifferenceValue()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object