ubc.cs.JLog.Animation
Class FloatPolygon

java.lang.Object
  extended by ubc.cs.JLog.Animation.FloatPolygon

public class FloatPolygon
extends java.lang.Object


Field Summary
 int npoints
           
 float[] xpoints
           
 float[] ypoints
           
 
Constructor Summary
FloatPolygon()
           
FloatPolygon(float[] xpts, float[] ypts, int npts)
           
FloatPolygon(int capacity)
           
 
Method Summary
 void addPoint(float x, float y)
           
 void translate(float deltaX, float deltaY)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

npoints

public int npoints

xpoints

public float[] xpoints

ypoints

public float[] ypoints
Constructor Detail

FloatPolygon

public FloatPolygon()

FloatPolygon

public FloatPolygon(int capacity)

FloatPolygon

public FloatPolygon(float[] xpts,
                    float[] ypts,
                    int npts)
Method Detail

addPoint

public void addPoint(float x,
                     float y)

translate

public void translate(float deltaX,
                      float deltaY)