XJRT Rendering Toolkit 1.0b06

org.autochthonous.graphics.rt.util
Class WaveSource

java.lang.Object
  extended byorg.autochthonous.graphics.rt.util.WaveSource

public class WaveSource
extends java.lang.Object

a generic wave source.

Example:

    <WaveSource center="0, 0, 0" amplitude="0.5" wavelength="0.2"/>
 

Document Type Definition:

     <!ENTITY %Color3f "CDATA">
     <!ENTITY %Float   "CDATA">
     <!ENTITY %Point3f "CDATA">

     <!ELEMENT WaveSource EMPTY>
     <!ATTLIST WaveSource
         color      %Color3f; "1, 1, 1"
         wavelength %Float;   "6.2"
         amplitude  %Float;   "1"
         phase      %Float;   "0"
         damping    %Float;   "0"
         center     %Point3f; "0, 0, 0">
 


Constructor Summary
WaveSource(Point3f center, double wavelength, double amplitude, double phase, double damping)
           
 
Method Summary
static WaveSource getInstance(RMLReader in)
           
 Vector3f perturbationAt(Point3f loc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaveSource

public WaveSource(Point3f center,
                  double wavelength,
                  double amplitude,
                  double phase,
                  double damping)
Method Detail

getInstance

public static WaveSource getInstance(RMLReader in)
                              throws java.io.IOException
Throws:
java.io.IOException

perturbationAt

public Vector3f perturbationAt(Point3f loc)

XJRT Rendering Toolkit 1.0b06