appletbots
Class VectorToDraw

java.lang.Object
  extended by appletbots.VectorToDraw

public class VectorToDraw
extends java.lang.Object

This class represents a vector to be drawn when painting the world. This is used when showing the velocities or accelerations of agents.

Author:
Erik Rasmussen

Field Summary
 java.awt.Color color
          The color with which to draw the vector
 Vector vector
          The vector to draw
 
Constructor Summary
VectorToDraw(Vector vector, java.awt.Color color)
          Creates a new vector-to-draw object with the given parameters
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vector

public Vector vector
The vector to draw


color

public java.awt.Color color
The color with which to draw the vector

Constructor Detail

VectorToDraw

public VectorToDraw(Vector vector,
                    java.awt.Color color)
Creates a new vector-to-draw object with the given parameters

Parameters:
vector - The vector to draw
color - The color with which to draw the vector