kcl library referencestdmathlegAngX

legAngXFunction in std::math

Compute the angle of the given leg for x.

legAngX(
  hypotenuse: number,
  leg: number,
): number

Arguments

NameTypeDescriptionRequired
hypotenusenumberThe length of the triangle's hypotenuseYes
legnumberThe length of one of the triangle's legs (i.e. non-hypotenuse side)Yes

Returns

number - A number

Examples

legAngX(hypotenuse = 5, leg = 3)