utilities
Class Spline

java.lang.Object
  |
  +--utilities.Spline

public class Spline
extends java.lang.Object


Field Summary
 float[] Ax
           
 float[] Ay
           
 float[] Bx
           
 float[] By
           
 float[] Cx
           
 float[] Cy
           
 int NP
           
 float[] Px
           
 float[] Py
           
 
Constructor Summary
Spline(float[] Px, float[] Py, int NP)
           
Spline(int[] Px, int[] Py, int NP)
           
 
Method Summary
 void draw(java.awt.Graphics gra)
           
 void Generate()
           
 java.awt.Point getPoint(float dist)
           
 void show()
           
 java.lang.String toString()
          Shows the points used to create the spline.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Px

public float[] Px

Py

public float[] Py

Ax

public float[] Ax

Ay

public float[] Ay

Bx

public float[] Bx

By

public float[] By

Cx

public float[] Cx

Cy

public float[] Cy

NP

public int NP
Constructor Detail

Spline

public Spline(float[] Px,
              float[] Py,
              int NP)

Spline

public Spline(int[] Px,
              int[] Py,
              int NP)
Method Detail

Generate

public void Generate()

draw

public void draw(java.awt.Graphics gra)

getPoint

public java.awt.Point getPoint(float dist)

toString

public java.lang.String toString()
Shows the points used to create the spline. added by kyle so I could debug stuff that used this class.
Overrides:
toString in class java.lang.Object

show

public void show()