Files
modeling-app/docs/kcl-std/legLen.md
Nick Cameron 0621e1a53e Docs content (#6792)
* Add documentation to modules, and some constants and types

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Improve the language reference

Signed-off-by: Nick Cameron <nrc@ncameron.org>

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
2025-05-11 19:32:33 +12:00

720 B

title, subtitle, excerpt, layout
title subtitle excerpt layout
legLen Function in std::math Compute the length of the given leg. manual

Compute the length of the given leg.

legLen(
  hypotenuse: number,
  leg: number,
): number

Arguments

Name Type Description Required
hypotenuse number The length of the triangle's hypotenuse Yes
leg number The length of one of the triangle's legs (i.e. non-hypotenuse side) Yes

Returns

number - A number.

Examples

legLen(hypotenuse = 5, leg = 3)