Files
modeling-app/docs/kcl-std/functions/std-math-atan.md
Nick Cameron 574d6dae7f Add modules to docs (#6699)
* 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>
2025-05-06 11:02:55 +12:00

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)