* More units of measure work Signed-off-by: Nick Cameron <nrc@ncameron.org> * Update CSG output since engine change --------- Signed-off-by: Nick Cameron <nrc@ncameron.org> Co-authored-by: Nick Cameron <nrc@ncameron.org>
		
			
				
	
	
	
		
			91 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			91 KiB
		
	
	
	
	
	
	
	
title, excerpt, layout
| 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(toRadians(30)),
  )
  |> yLine(endAbsolute = 0)
  |> close()
example = extrude(exampleSketch, length = 5)