Math-Set to slope

From Vectorlab
Jump to: navigation, search

Modify the slope between two vectors. Returns a new vector. You need to load the routines M_OffsetPt and M_GetDistance before this. By Orso B. Schmid

{ Orso ***************************** }
{ sets two points to a slope  }
FUNCTION M_SetToSlope(v1, v2 : VECTOR; slope: REAL): VECTOR;
		M_SetToSlope := M_OffsetPt(v1, M_GetDistance(v1, v2), slope);