Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 90.6 KB

std-math-cos.md

File metadata and controls

44 lines (28 loc) · 90.6 KB
title excerpt layout
std::math::cos
Compute the cosine of a number (in radians).
manual

Compute the cosine of a number (in radians).

cos(@num: number(Angle)): number(_)

Arguments

Name Type Description Required
num number(Angle) Yes

Returns

number(_)

Examples

exampleSketch = startSketchOn(XZ)
  |> startProfileAt([0, 0], %)
  |> angledLine(
    angle = 30,
    length = 3 / cos(30deg),
  )
  |> yLine(endAbsolute = 0)
  |> close()

example = extrude(exampleSketch, length = 5)

Rendered example of std::math::cos 0