1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-01 12:30:33 +02:00
This commit is contained in:
Justin Lin
2021-05-03 16:47:36 +08:00
parent 58eaccf998
commit 5defe6e218
5 changed files with 52 additions and 2 deletions

View 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]);

View 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]);