j3d.org Code

org.j3d.geom.particle
Class TexCoordInterpolator

java.lang.Object
  extended by org.j3d.geom.particle.TexCoordInterpolator

public class TexCoordInterpolator
extends java.lang.Object

Heavily customised interpolator for determining texture coordinates to apply to a given particle.

Public definition to allow renderer-specific particle system implementations to request the interpolation, but not allowed to be created or set up outside of this package.

Version:
$Revision: 2.0 $
Author:
Justin Couch

Field Summary
protected  int currentSize
          Current total number of items in the array
protected  float[] keys
          The keys as a single array for fast searching
 
Method Summary
 void interpolate(float key, int offset, float[] outputCoords)
          Go find the appropriate set of texture coordinates now.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentSize

protected int currentSize
Current total number of items in the array


keys

protected float[] keys
The keys as a single array for fast searching

Method Detail

interpolate

public void interpolate(float key,
                        int offset,
                        float[] outputCoords)
Go find the appropriate set of texture coordinates now.

Parameters:
key - The key value to get the position for
outputCoords - An array of the values at that position [x, y, z]

j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org