Vector
This is the Point class. This class handles storing information about vectors, which are basically Points but using polar coordinates as the default. The main reason this class exists is because some vector math needs to be done in the Follower, and dot products and cross products of Points just don't seem right. Also, there are a few more methods in here that make using Vectors a little easier than using a Point in polar coordinates.
Author
Anyi Lin - 10158 Scott's Bots
Aaron Yang - 10158 Scott's Bots
Harrison Womack - 10158 Scott's Bots
Constructors
Properties
Functions
Link copied to clipboard
Returns the magnitude of this Vector.
Link copied to clipboard
Returns the x component of this Vector.
Link copied to clipboard
Returns the y component of this Vector.
Link copied to clipboard
This rotates the Vector by an angle, theta.
Link copied to clipboard
This sets the components of the Vector in regular vector coordinates.
Link copied to clipboard
This sets only the magnitude of the Vector.
Link copied to clipboard
This sets the orthogonal components of the Vector.