Files
modeling-app/docs/kcl-std/functions/std-math-atan.md
Nick Cameron 9c52f5b19a Add tags to Rust std lib functions (#6701)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2025-05-06 14:14:11 +12:00

648 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)