Simulator/src/model/environment/position/Vector.java
/**
	 * Checks if this vector is an approximate counterclockwise rotation of
	 * another vector.
	 * 
	 * @param degrees
	 *            The degrees rotation.
	 * @param other
	 *            The other vector.
	 * @return True if it is an approximate rotation, false otherwise.
	 */
Checks if this vector is an approximate counterclockwise rotation of
another vector.

@param degrees
The degrees rotation.
@param other
The other vector.
@return True if it is an approximate rotation, false otherwise.
Checks if this vector is an approximate counterclockwise rotation of another vector . @param degrees The degrees rotation . @param other The other vector . @return True if it is an approximate rotation false otherwise .
public boolean isAproximateRotation(float degrees, Vector other) {
		float angle = degrees * ((float) Math.PI / 180);
		float xDiff = x - other.x * (float) Math.cos(angle) - other.y * (float) Math.sin(angle);
		float yDiff = y - other.y * (float) Math.cos(angle) + other.x * (float) Math.sin(angle);
		return new Vector(xDiff, yDiff).length() < 0.1;
	}
public boolean isAproximateRotation ( float degrees , Vector other ) { float angle = degrees * ( ( float ) Math . PI / 180 ) ; float xDiff = x - other . x * ( float ) Math . cos ( angle ) - other . y * ( float ) Math . sin ( angle ) ; float yDiff = y - other . y * ( float ) Math . cos ( angle ) + other . x * ( float ) Math . sin ( angle ) ; return new Vector ( xDiff , yDiff ) . length ( ) < 0.1 ; }
Checks if this vector is an approximate counterclockwise rotation of
 another vector.
Checks if this vector is an approximate counterclockwise rotation of another vector .