Bouncy Castle Rendering Toolkit 1.0

org.bouncycastle.graphics.rt.util
Class Util

java.lang.Object
  |
  +--org.bouncycastle.graphics.rt.util.Util

public class Util
extends java.lang.Object


Constructor Summary
Util()
           
 
Method Summary
static void generatePerturbationVector(Vector3f axis, float u, float v, Vector3f res)
          generate a peturbed vector around axis, leaving the result in res.
static Matrix4f[] interpolate(int size, Matrix4f[] input)
          generate an array of size matrices based on the interpolated values in the input matrix array.
static float triWave(float x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

generatePerturbationVector

public static void generatePerturbationVector(Vector3f axis,
                                              float u,
                                              float v,
                                              Vector3f res)
generate a peturbed vector around axis, leaving the result in res.

interpolate

public static Matrix4f[] interpolate(int size,
                                     Matrix4f[] input)
generate an array of size matrices based on the interpolated values in the input matrix array.

triWave

public static float triWave(float x)

Bouncy Castle Rendering Toolkit 1.0