Uses of Class
appletbots.geometry.Vector

Packages that use Vector
appletbots   
appletbots.directedballs   
appletbots.gatherers   
appletbots.geometry   
 

Uses of Vector in appletbots
 

Fields in appletbots declared as Vector
 Vector VectorToDraw.vector
          The vector to draw
 

Methods in appletbots that return Vector
 Vector Agent.getAcceleration()
          Returns the agent's acceleration.
 Vector Agent.getRandomAcceleration()
          Returns a random acceleration vector
 Vector World.getVectorToObject(WorldObject a, WorldObject b)
          Returns a vector from the first object to the second object.
 Vector WorldObjectData.getVelocity()
          Returns the velocity of the object.
 Vector World.getVelocity(WorldObject object)
          Returns the velocity for the given object
 

Methods in appletbots with parameters of type Vector
 void World.addObject(WorldObject object, Point location, Vector velocity)
          Adds an object to the world at the given position with the given initial velocity
 void World.addObject(WorldObject object, Vector velocity)
          Adds an object to a random position in the world with the given initial velocity
protected  void Agent.setAcceleration(Vector acceleration)
          Sets the agent's acceleration vector.
 void WorldObjectData.setVelocity(Vector velocity)
          Sets the velocity of the object
 

Constructors in appletbots with parameters of type Vector
VectorToDraw(Vector vector, java.awt.Color color)
          Creates a new vector-to-draw object with the given parameters
WorldObjectData(Point location, Vector velocity, WorldObject object)
          Constructs a new WorldObjectData with the given location and velocity values for the given object
 

Uses of Vector in appletbots.directedballs
 

Fields in appletbots.directedballs declared as Vector
protected  Vector DirectedKicker.direction
          The goal direction
 

Constructors in appletbots.directedballs with parameters of type Vector
DirectedKicker(Vector direction, java.awt.Color color, int size, int sight, double maxSpeed, double maxAcceleration)
          Constructs a new DirectedKicker with the given parameters
 

Uses of Vector in appletbots.gatherers
 

Fields in appletbots.gatherers declared as Vector
protected  Vector Gatherer.towardsHome
          The vector pointing in the direction of the agent's home base
 

Uses of Vector in appletbots.geometry
 

Fields in appletbots.geometry declared as Vector
static Vector Vector.X_AXIS
          A normalized vector in the direction of the x-axis
static Vector Vector.Y_AXIS
          A normalized vector in the direction of the y-axis
static Vector Vector.ZERO
          A zero vector
 

Methods in appletbots.geometry that return Vector
 Vector Vector.add(Vector v)
          Returns the result of adding this vector to another vector
static Vector Vector.average(java.util.Collection vectors)
          Returns the average of a collection of vectors
 Vector Vector.divide(double divisor)
          Returns the result of dividinig this vector by a scalar number
static Vector Vector.getRandom(double length)
          Returns a random vector of the given length
 Vector Vector.multiply(double multiplicand)
          Returns the result of multiplying this vector times a scalar number
 Vector Vector.normalize()
          Creates a new vector aligned with this one with a length of 1
 Vector Vector.rotate(double theta)
          Returns the result of rotating this vector by theta radians
 Vector Vector.setLength(double length)
          Creates a new vector aligned with this one with the given length
 Vector Vector.subtract(Vector v)
          Returns the result of subtracting another vector from this vector
 

Methods in appletbots.geometry with parameters of type Vector
 Vector Vector.add(Vector v)
          Returns the result of adding this vector to another vector
 Point Point.add(Vector vector)
          Returns the result of adding a vector to this point
 double Vector.dotProduct(Vector v)
          Returns the dot product of this vector and another vector
 double Vector.getAngleToVector(Vector v)
          Returns the angle (in radians) from this vector to the given vector
 boolean Vector.isAligned(Vector v)
          Returns whether or not this vector is aligned (pointing in same direction) to the given vector
 boolean Vector.isParallel(Vector v)
          Returns whether or not this vector is parellel to the given vector
 Vector Vector.subtract(Vector v)
          Returns the result of subtracting another vector from this vector