Math-Trig X by Diag and Ang

From Vectorlab
Jump to: navigation, search


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


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