src/Matter/World.js
function isAxisAligned(vector) {
	for (let d in Constants.Directions) {
		let direction = Constants.Directions[d];
		
		if (Vector.dot(direction, vector) === 1) {
			return true;
		}
	}
	
	return false;
}
function isAxisAligned(vector) {
	for (let d in Constants.Directions) {
		let direction = Constants.Directions[d];
		
		if (Vector.dot(direction, vector) === 1) {
			return true;
		}
	}
	
	return false;
}
function isAxisAligned ( vector ) { for ( let d in Constants . Directions ) { let direction = Constants . Directions [ d ] ; if ( Vector . dot ( direction , vector ) === 1 ) { return true ; } } return false ; }
Determine whether a vector is aligned with a 2D axis.

@param {Object} vector
@returns {boolean}
Determine whether a vector is aligned with a 2D axis .