edu.cmu.sun.interpolators
Class SimpleVector3fSmoother

java.lang.Object
  extended by edu.cmu.sun.interpolators.SimpleVector3fSmoother

public class SimpleVector3fSmoother
extends java.lang.Object

A 3d smoother that does linear interpolation between the 3d points.

Author:
Braden Kowitz

Field Summary
(package private)  javax.vecmath.Vector3f currentVal
           
(package private)  javax.vecmath.Vector3f fromVal
           
(package private)  javax.vecmath.Vector3f toVal
           
 
Constructor Summary
SimpleVector3fSmoother()
           
 
Method Summary
 javax.vecmath.Vector3f getFinalValue(javax.vecmath.Vector3f v)
           
 javax.vecmath.Vector3f getLatestValue(javax.vecmath.Vector3f v)
           
 javax.vecmath.Vector3f getValue(javax.vecmath.Vector3f v, float n)
           
 void setInternalValue(javax.vecmath.Vector3f v)
           
 void setTargetValue(javax.vecmath.Vector3f t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fromVal

javax.vecmath.Vector3f fromVal

toVal

javax.vecmath.Vector3f toVal

currentVal

javax.vecmath.Vector3f currentVal
Constructor Detail

SimpleVector3fSmoother

public SimpleVector3fSmoother()
Method Detail

setTargetValue

public void setTargetValue(javax.vecmath.Vector3f t)

setInternalValue

public void setInternalValue(javax.vecmath.Vector3f v)

getValue

public javax.vecmath.Vector3f getValue(javax.vecmath.Vector3f v,
                                       float n)

getLatestValue

public javax.vecmath.Vector3f getLatestValue(javax.vecmath.Vector3f v)

getFinalValue

public javax.vecmath.Vector3f getFinalValue(javax.vecmath.Vector3f v)