code: function isAxisAligned(vector) {
  	for (let d in Constants.Directions) {
  		let direction = Constants.Directions[d];
  		
  		if (Vector.dot(direction, vector) === 1) {
  			return true;
  		}
  	}
  	
  	return false;
  }
docs: Determine whether a vector is aligned with a 2D axis.
  
  @param {Object} vector
  @returns {boolean}