* 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>
		
			
				
	
	
		
			48 lines
		
	
	
		
			87 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			87 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
---
 | 
						|
title: "circleThreePoint"
 | 
						|
excerpt: "Construct a circle derived from 3 points."
 | 
						|
layout: manual
 | 
						|
---
 | 
						|
 | 
						|
Construct a circle derived from 3 points.
 | 
						|
 | 
						|
 | 
						|
 | 
						|
```js
 | 
						|
circleThreePoint(
 | 
						|
  sketchSurfaceOrGroup: SketchOrSurface,
 | 
						|
  p1: [number],
 | 
						|
  p2: [number],
 | 
						|
  p3: [number],
 | 
						|
  tag?: TagDeclarator,
 | 
						|
): Sketch
 | 
						|
```
 | 
						|
 | 
						|
 | 
						|
### Arguments
 | 
						|
 | 
						|
| Name | Type | Description | Required |
 | 
						|
|----------|------|-------------|----------|
 | 
						|
| `sketchSurfaceOrGroup` | [`SketchOrSurface`](/docs/kcl/types/SketchOrSurface) | Plane or surface to sketch on. | Yes |
 | 
						|
| `p1` | [`[number]`](/docs/kcl/types/number) | 1st point to derive the circle. | Yes |
 | 
						|
| `p2` | [`[number]`](/docs/kcl/types/number) | 2nd point to derive the circle. | Yes |
 | 
						|
| `p3` | [`[number]`](/docs/kcl/types/number) | 3rd point to derive the circle. | Yes |
 | 
						|
| [`tag`](/docs/kcl/types/tag) | [`TagDeclarator`](/docs/kcl/types#tag-declaration) | Identifier for the circle to reference elsewhere. | No |
 | 
						|
 | 
						|
### Returns
 | 
						|
 | 
						|
[`Sketch`](/docs/kcl/types/Sketch)
 | 
						|
 | 
						|
 | 
						|
### Examples
 | 
						|
 | 
						|
```js
 | 
						|
exampleSketch = startSketchOn(XY)
 | 
						|
  |> circleThreePoint(p1 = [10, 10], p2 = [20, 8], p3 = [15, 5])
 | 
						|
  |> extrude(length = 5)
 | 
						|
```
 | 
						|
 | 
						|

 | 
						|
 | 
						|
 |