* fix description of angleToMatchLengthX * Update docs * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu-latest-8-cores) * update doc regen instructions * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu-latest-8-cores) * Re-run CI after snapshots --------- Co-authored-by: Adam Chalmers <adam.chalmers@zoo.dev> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Frank Noirot <frank@kittycad.io>
		
			
				
	
	
		
			44 lines
		
	
	
		
			76 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			76 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
---
 | 
						|
title: "angleToMatchLengthX"
 | 
						|
excerpt: "Returns the angle to match the given length for x."
 | 
						|
layout: manual
 | 
						|
---
 | 
						|
 | 
						|
Returns the angle to match the given length for x.
 | 
						|
 | 
						|
 | 
						|
 | 
						|
```js
 | 
						|
angleToMatchLengthX(tag: TagIdentifier, to: number, sketch: Sketch) -> number
 | 
						|
```
 | 
						|
 | 
						|
 | 
						|
### Arguments
 | 
						|
 | 
						|
| Name | Type | Description | Required |
 | 
						|
|----------|------|-------------|----------|
 | 
						|
| `tag` | [`TagIdentifier`](/docs/kcl/types#tag-identifier) |  | Yes |
 | 
						|
| `to` | `number` |  | Yes |
 | 
						|
| `sketch` | [`Sketch`](/docs/kcl/types/Sketch) | A sketch is a collection of paths. | Yes |
 | 
						|
 | 
						|
### Returns
 | 
						|
 | 
						|
`number` 
 | 
						|
 | 
						|
 | 
						|
### Examples
 | 
						|
 | 
						|
```js
 | 
						|
sketch001 = startSketchOn('XZ')
 | 
						|
  |> startProfileAt([0, 0], %)
 | 
						|
  |> line([2, 5], %, $seg01)
 | 
						|
  |> angledLineToX([-angleToMatchLengthX(seg01, 7, %), 10], %)
 | 
						|
  |> close(%)
 | 
						|
 | 
						|
extrusion = extrude(5, sketch001)
 | 
						|
```
 | 
						|
 | 
						|

 | 
						|
 | 
						|
 |