Math-Trig Y by Diag and Ang

From Vectorlab
Jump to: navigation, search


Given a DIAGONAL (diag) and an ANGLE (ang), returns the HEIGHT (y). By Orso B. Schmid


{ Orso ************************************************ }
{ given a DIAGONAL (diag) and an ANGLE, returns the HEIGHT }
FUNCTION M_Trig_YbyDandAng(diag, ang: REAL): REAL;
	BEGIN
		M_Trig_YbyDandAng := sin(Deg2Rad(ang)) * diag;
	END;