omdl
v0.6.1
OpenSCAD Mechanical Design Library
|
Triangle solutions mathematical functions. More...
#include <math-base.scad>
Go to the source code of this file.
Functions | |
function | triangle_sss2lp (s1, s2, s3, cw=true) |
Compute the vertex coordinates of a triangle given its side lengths. More... | |
function | triangle_ls2lp (v, cw=true) |
Compute the vertex coordinates of a triangle given its side lengths. More... | |
function | triangle_ppp2ls (v1, v2, v3) |
Compute the side lengths of a triangle given its vertex coordinates. More... | |
function | triangle_lp2ls (v) |
Compute the side lengths of a triangle given its vertex coordinates. More... | |
function | triangle_area_ppp (v1, v2, v3, s=false) |
Compute the signed area of a triangle given its vertex coordinates. More... | |
function | triangle_area_lp (v, s=false) |
Compute the signed area of a triangle given its vertex coordinates. More... | |
function | triangle_centroid_ppp (v1, v2, v3) |
Compute the centroid (geometric center) of a triangle. More... | |
function | triangle_centroid_lp (v) |
Compute the centroid (geometric center) of a triangle. More... | |
function | triangle_incenter_ppp (v1, v2, v3) |
Compute the coordinate for the triangle's incircle. More... | |
function | triangle_incenter_lp (v) |
Compute the coordinate for the triangle's incircle. More... | |
function | triangle_inradius_ppp (v1, v2, v3) |
Compute the inradius of a triangle's incircle. More... | |
function | triangle_inradius_lp (v) |
Compute the inradius of a triangle's incircle. More... | |
function | triangle_is_cw_ppp (v1, v2, v3) |
Test the vertex ordering, or orientation, of a triangle. More... | |
function | triangle_is_cw_lp (v) |
Test the vertex ordering, or orientation, of a triangle. More... | |
function | triangle_is_pit_ppp (v1, v2, v3, t) |
Test if a point is inside a triangle in a Euclidean 2d-space using Barycentric. More... | |
function | triangle_is_pit_lp (v, t) |
Test if a point is inside a triangle in a Euclidean 2d-space using Barycentric. More... | |
Triangle solutions mathematical functions.
This file is part of omdl, an OpenSCAD mechanical design library.
The omdl is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
The omdl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with the omdl; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA; or see http://www.gnu.org/licenses/.
Definition in file math_triangle.scad.