Remove trig functions from prelude and change their unit handling Signed-off-by: Nick Cameron <nrc@ncameron.org>
		
			
				
	
	
	
		
			84 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			84 KiB
		
	
	
	
	
	
	
	
title, excerpt, layout
| title | excerpt | layout | 
|---|---|---|
| std::units::toRadians | Converts a number to radians from its current units. | manual | 
Converts a number to radians from its current units.
toRadians(@num: number(rad)): number(rad)
Arguments
| Name | Type | Description | Required | 
|---|---|---|---|
num | 
number(rad) | 
Yes | 
Returns
number(rad)
Examples
exampleSketch = startSketchOn(XZ)
  |> startProfile(at = [0, 0])
  |> angledLine(
    angle = 50,
    length = 70 * math::cos(units::toRadians(45)),
  )
  |> yLine(endAbsolute = 0)
  |> close()
example = extrude(exampleSketch, length = 5)