Math-Get Slope

From Vectorlab
Jump to: navigation, search


Returns the slope between two vectors. You need to load the routine M_CheckAng360 before this. By Orso B. Schmid


{ Orso ***************************** }
{ returns the slope between two points, useful for a line }
FUNCTION M_GetSlope(v1, v2: VECTOR): REAL;
	BEGIN
		M_GetSlope := M_CheckAng360(Vec2Ang(v2 - v1));
	END;