build/craftymatter.js
function( pointA, pointB ) {

	        var vector = _getVector( pointA, pointB );
	        return -Crafty.math.radToDeg( Math.atan2( vector.y, vector.x ) ).toFixed( 3 );
	    }
function( pointA, pointB ) {

	        var vector = _getVector( pointA, pointB );
	        return -Crafty.math.radToDeg( Math.atan2( vector.y, vector.x ) ).toFixed( 3 );
	    }
function ( pointA , pointB ) { var vector = _getVector ( pointA , pointB ) ; return - Crafty . math . radToDeg ( Math . atan2 ( vector . y , vector . x ) ) . toFixed ( 3 ) ; }
Calculate the angle between a vector and the x axis
@param  {Vector} pointA - vector origin
@param  {Vector} pointB - vector point
@return {number}        angle between the vector and the x axis
Calculate the angle between a vector and the x axis