* Support calling KCL std KW fns, and move circle to KCL std Signed-off-by: Nick Cameron <nrc@ncameron.org> * Doc comments on parameters Signed-off-by: Nick Cameron <nrc@ncameron.org> * Update grammar Signed-off-by: Nick Cameron <nrc@ncameron.org> * Change use of counterClockWise to ccw Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
		
			
				
	
	
		
			45 lines
		
	
	
		
			85 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			85 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
---
 | 
						|
title: "std::math::sin"
 | 
						|
excerpt: "Compute the sine of a number (in radians)."
 | 
						|
layout: manual
 | 
						|
---
 | 
						|
 | 
						|
Compute the sine of a number (in radians).
 | 
						|
 | 
						|
 | 
						|
 | 
						|
```js
 | 
						|
sin(@num: number(rad)): number(_)
 | 
						|
```
 | 
						|
 | 
						|
 | 
						|
### Arguments
 | 
						|
 | 
						|
| Name | Type | Description | Required |
 | 
						|
|----------|------|-------------|----------|
 | 
						|
| `num` | `number(rad)` |  | Yes |
 | 
						|
 | 
						|
### Returns
 | 
						|
 | 
						|
`number(_)`
 | 
						|
 | 
						|
 | 
						|
### Examples
 | 
						|
 | 
						|
```js
 | 
						|
exampleSketch = startSketchOn(XZ)
 | 
						|
  |> startProfileAt([0, 0], %)
 | 
						|
  |> angledLine({
 | 
						|
    angle = 50,
 | 
						|
    length = 15 / sin(toDegrees(135)),
 | 
						|
  }, %)
 | 
						|
  |> yLine(endAbsolute = 0)
 | 
						|
  |> close()
 | 
						|
 | 
						|
example = extrude(exampleSketch, length = 5)
 | 
						|
```
 | 
						|
 | 
						|

 | 
						|
 | 
						|
 |