fixed source code links to go to repo.or.cz repository
[applet-bots.git] / src / appletbots / VectorToDraw.java
blob8d6191d131e9cd9814c56cbd3f35565cb5a91d98
1 /*
2 * Copyright (c) 2002 Erik Rasmussen - All Rights Reserverd
3 */
4 package appletbots;
6 import appletbots.geometry.Vector;
8 import java.awt.*;
10 /**
11 * This class represents a vector to be drawn when painting the world. This
12 * is used when showing the velocities or accelerations of agents.
14 * @author Erik Rasmussen
16 public class VectorToDraw
18 /**
19 * The vector to draw
21 public Vector vector;
22 /**
23 * The color with which to draw the vector
25 public Color color;
27 /**
28 * Creates a new vector-to-draw object with the given parameters
30 * @param vector The vector to draw
31 * @param color The color with which to draw the vector
33 public VectorToDraw(final Vector vector, final Color color)
35 this.vector = vector;
36 this.color = color;