org.xith3d.utility.math
Class FloatUpperLimiter

java.lang.Object
  extended by org.xith3d.loop.opscheduler.impl.ScheduledOperationImpl
      extended by org.xith3d.utility.math.FloatUpperLimiter
All Implemented Interfaces:
ScheduledOperation, Updatable

public class FloatUpperLimiter
extends ScheduledOperationImpl

Limit a float value, so that it is never greater than a given value


Constructor Summary
FloatUpperLimiter(java.lang.Object object, java.lang.String member, float limit, OperationScheduler opSched)
           
 
Method Summary
 void update(long gameTime, long frameTime, UpdatingThread.TimingMode timingMode)
          Updates this Updatable object.
 
Methods inherited from class org.xith3d.loop.opscheduler.impl.ScheduledOperationImpl
isAlive, isPersistent, setAlive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloatUpperLimiter

public FloatUpperLimiter(java.lang.Object object,
                         java.lang.String member,
                         float limit,
                         OperationScheduler opSched)
Method Detail

update

public void update(long gameTime,
                   long frameTime,
                   UpdatingThread.TimingMode timingMode)
Description copied from interface: Updatable
Updates this Updatable object.

Parameters:
gameTime - the gameTime in Milliseconds
frameTime - the frameTime in Milliseconds (needed time for the last frame)
timingMode - the TimingMode to use for frameTime.