RPTools

Personal tools
From MapToolDoc

hypotenuse

hypotenuse() Function

Returns the hypotenuse of a right triangle whos other two sides have a length of sideA and sideB. The formula used to calculate the hypotnese is, h^2 = sideA^2 * sideB^2. See Hypotenuse

Usage

  1. [h: h = hypot(sideA, sideB)]
  2. [h: h = hypotenuse(sideA, sideB)]

Examples

  1. [r: hypot(3,4)]

Returns 5.