* 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>
649 B
649 B
title, excerpt, layout
title | excerpt | layout |
---|---|---|
std::math::atan | Compute the arctangent of a number. | manual |
Compute the arctangent of a number.
Consider using atan2()
instead for the true inverse of tangent.
atan(@num: number(_)): number(rad)
Arguments
Name | Type | Description | Required |
---|---|---|---|
num |
number(_) |
Yes |
Returns
number(rad)
Examples
sketch001 = startSketchOn(XZ)
|> startProfile(at = [0, 0])
|> angledLine(
angle = atan(1.25),
length = 20,
)
|> yLine(endAbsolute = 0)
|> close()
extrude001 = extrude(sketch001, length = 5)