* Support modules in docs Signed-off-by: Nick Cameron <nrc@ncameron.org> * shuffle around directories Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
699 B
699 B
title, excerpt, layout
title | excerpt | layout |
---|---|---|
legLen | Compute the length of the given leg. | manual |
Compute the length of the given leg.
legLen(
hypotenuse: number,
leg: number,
): number
Tags
utilities
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
Examples
legLen(hypotenuse = 5, leg = 3)