Files
modeling-app/docs/kcl-std/functions/std-math-legAngX.md
Nick Cameron a049768f1c Move some more functions to be declared in KCL (#6856)
* Move the leg functions to KCL

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

* Move array functions to KCL

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

* Move clone to KCL

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

* Add a function type

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

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
2025-05-13 08:29:38 +12:00

777 B

title, subtitle, excerpt, layout
title subtitle excerpt layout
legAngX Function in std::math Compute the angle of the given leg for x. manual

Compute the angle of the given leg for x.

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

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(deg) - A number.

Examples

legAngX(hypotenuse = 5, leg = 3)