omdl
v0.9.5
OpenSCAD Mechanical Design Library
|
Length units and conversions. More...
Go to the source code of this file.
Functions | |
function | length_unit_name (u=length_unit_default, d=1, w=false) |
Return the name for a length unit identifier with dimension. More... | |
function | length (v, from=length_unit_default, to=length_unit_base, d=1) |
Convert a value from from one units to another with dimensions. More... | |
function | length_inv (v, from=length_unit_base, to=length_unit_default, d=1) |
Convert a value from from one units to another with dimensions. More... | |
Shorts | |
function | l_mm (v) |
Shorthand length conversion for millimeters. More... | |
function | l_in (v) |
Shorthand length conversion for inches. More... | |
Variables | |
length_unit_base = "mm" | |
<string> The base units for value storage. | |
length_unit_default = "mm" | |
<string> The default units when unspecified. | |
Length units and conversions.
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 length.scad.