* Fake modules for Rust std lib functions Signed-off-by: Nick Cameron <nrc@ncameron.org> * Include the missing @ in Rust std lib fns Signed-off-by: Nick Cameron <nrc@ncameron.org> * Move revolve and mirror2d to better modules Signed-off-by: Nick Cameron <nrc@ncameron.org> * Use docs from KCL mods for type summaries Signed-off-by: Nick Cameron <nrc@ncameron.org> * Use type docs to describe types from KCL std lib Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
696 B
696 B
title, excerpt, layout
title | excerpt | layout |
---|---|---|
std::math::legLen | 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)