Math-Trig Chord by Sweep and Radius

From Vectorlab
Jump to: navigation, search


Given SWEEP and RADIUS of an arc, returns the length of the CHORD. By Orso B. Schmid


{ Orso ***************************** }
{ given arc radius and sweep, result is the cord }
FUNCTION M_Trig_ArcChordBySweepRadius(sweep, radius: REAL): REAL;
	BEGIN
		{ chord = 2 * radius * sin(sweep/2) }
		M_Trig_ArcChordBySweepRadius := 2 * radius * sin(Deg2Rad(sweep/2));
	END;