mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-01 12:30:33 +02:00
add doc
This commit is contained in:
15
docs/lib3x-tri_circumcenter.md
Normal file
15
docs/lib3x-tri_circumcenter.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# tri_circumcenter
|
||||
|
||||
The `tri_circumcenter` function returns the circumcenter of a 2D triangle.
|
||||
|
||||
**Since:** 3.1
|
||||
|
||||
## Parameters
|
||||
|
||||
- `shape_pts` : the vertices of a 2D triangle.
|
||||
|
||||
## Examples
|
||||
|
||||
use <triangle/tri_circumcenter.scad>;
|
||||
|
||||
assert(tri_circumcenter([[0, 0], [10, 20], [15, 10]]) == [3.75, 10.625]);
|
15
docs/lib3x-tri_incenter.md
Normal file
15
docs/lib3x-tri_incenter.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# tri_incenter
|
||||
|
||||
The `tri_incenter` function returns the incenter of a 2D triangle.
|
||||
|
||||
**Since:** 3.1
|
||||
|
||||
## Parameters
|
||||
|
||||
- `shape_pts` : the vertices of a 2D triangle.
|
||||
|
||||
## Examples
|
||||
|
||||
use <triangle/tri_incenter.scad>;
|
||||
|
||||
assert(tri_incenter([[0, 0], [15, 0], [0, 20]]) == [5, 5]);
|
Reference in New Issue
Block a user