Math-Trig Diag by X and Y

From Vectorlab

Jump to: navigation, search


Pitagora: given a WIDTH (x) and a HEIGHT (y), returns the DIAGONAL. By Orso B. Schmid


{ Orso ************************************************ }
{ Pitagora: given a WIDTH (x) and a HEIGHT (y), returns the DIAGONAL }
FUNCTION M_Trig_DbyXandY(x, y: REAL): REAL;
    BEGIN
        M_Trig_DbyXandY := Sqrt(x^2 + y^2);
    END;
Personal tools