omdl
v0.9.5
OpenSCAD Mechanical Design Library
|
Triangle shapes, conversions, properties, and tests functions. More...
Go to the source code of this file.
Functions | |
Shapes | |
function | triangle_ppp2sss (c) |
Compute the side lengths of a triangle given its vertex coordinates. More... | |
function | triangle_sas2sss (v) |
Compute the side lengths of a triangle given two sides and the included angle. More... | |
function | triangle_asa2sss (v) |
Compute the side lengths of a triangle given a side and two adjacent angles. More... | |
function | triangle_aas2sss (v) |
Compute the side lengths of a triangle given a side, one adjacent and the opposite angle. More... | |
function | triangle2d_sss2ppp (v, a=x_axis_ci, cw=true) |
Compute a set of vertex coordinates for a triangle given its side lengths in 2D. More... | |
Properties | |
function | triangle2d_area (c, s=false) |
Compute the area of a triangle given its vertex coordinates in 2D. More... | |
function | triangle_centroid (c, d=2) |
Compute the centroid of a triangle. More... | |
function | triangle2d_incenter (c) |
Compute the center coordinate of a triangle's incircle in 2D. More... | |
function | triangle2d_inradius (c) |
Compute the inradius of a triangle's incircle in 2D. More... | |
function | triangle2d_excenter (c, v=1) |
Compute the center coordinate of a triangle's excircle in 2D. More... | |
function | triangle2d_exradius (c, v=1) |
Compute the exradius of a triangle's excircle in 2D. More... | |
function | triangle_circumcenter (c, d=2) |
Compute the coordinate of a triangle's circumcenter. More... | |
Tests | |
function | triangle2d_is_cw (c) |
Test the vertex ordering, or orientation, of a triangle in 2D. More... | |
function | triangle2d_is_pit (c, p) |
Test if a point is inside a triangle in 2d. More... | |
Rounding | |
function | triangle2d_vround3_center (c, r) |
Compute the rounding center coordinate for a given radius of a triangle vertex in 2D. More... | |
function | triangle2d_vround3_tangents (c, r) |
Compute the rounding tangent coordinates for a given radius of a triangle vertex in 2D. More... | |
Triangle shapes, conversions, properties, and tests 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 triangle.scad.