Files
modeling-app/docs/kcl-std/functions/std-math-legLen.md
Nick Cameron 4d1524f03b Format examples in docs (#7378)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2025-06-05 18:01:45 -04:00

771 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(Length),
  leg: number(Length),
): number(Length)

Arguments

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

Returns

number(Length) - A number.

Examples

legLen(hypotenuse = 5, leg = 3)