edu.sdsc.mbt.viewers.GLViewerImpl
Class Hermite

java.lang.Object
  extended byedu.sdsc.mbt.viewers.GLViewerImpl.Hermite

public class Hermite
extends java.lang.Object

The Hermite class contains capabilities for Hermite interpolation of points assumed to lie on curve.

Author:
Apostol Gramada, John L. Moreland, John Tate

Constructor Summary
Hermite()
           
Hermite(Vec3f[] coords, float knotWeight)
           
 
Method Summary
 boolean fixTanCoeff()
           
 Vec3f[] getCoordinates()
           
 float getKnotWeight()
           
 Vector3f getNormal(float t)
           
 Vector3f getTangent(float t)
           
 void sample(float t, Vec3f coord)
           
 void set(Vec3f start, Vec3f finish, Vec3f tangent1, Vec3f tangent2)
           
 void set(Vec3f start, Vec3f finish, Vector3f tangent1, Vector3f tangent2)
           
 void set(Vector3f start, Vector3f finish, Vector3f tangent1, Vector3f tangent2)
           
 void setCoordinates(Vec3f[] coords)
           
 void setEndNormals(Vector3f n1, Vector3f n2)
           
 void setKnotWeight(float knotWeight)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hermite

public Hermite()

Hermite

public Hermite(Vec3f[] coords,
               float knotWeight)
Method Detail

setCoordinates

public void setCoordinates(Vec3f[] coords)

setEndNormals

public void setEndNormals(Vector3f n1,
                          Vector3f n2)

fixTanCoeff

public boolean fixTanCoeff()

getCoordinates

public Vec3f[] getCoordinates()

setKnotWeight

public void setKnotWeight(float knotWeight)

getKnotWeight

public float getKnotWeight()

sample

public void sample(float t,
                   Vec3f coord)

getTangent

public Vector3f getTangent(float t)

getNormal

public Vector3f getNormal(float t)

set

public void set(Vec3f start,
                Vec3f finish,
                Vec3f tangent1,
                Vec3f tangent2)

set

public void set(Vec3f start,
                Vec3f finish,
                Vector3f tangent1,
                Vector3f tangent2)

set

public void set(Vector3f start,
                Vector3f finish,
                Vector3f tangent1,
                Vector3f tangent2)