Math-Trig Ang by Y and Diag

From Vectorlab
Jump to: navigation, search


Given a HEIGHT (y) and a DIAGONAL (diag), returns the ANGLE. You need to load the routines M_Trig_AngByXandY and M_Trig_XbyYandD before this. By Orso B. Schmid


{ Orso ************************************************ }
{ Pitagora: given a HEIGHT (y) and a DIAGONAL (diag), returns the ANGLE }
FUNCTION M_Trig_AngByYandD(y, d: REAL): REAL;
	BEGIN
		M_Trig_AngByYandD := M_Trig_AngByXandY(M_Trig_XbyYandD(y, d), y);
	END;