omdl
v0.6.1
OpenSCAD Mechanical Design Library
|
Coordinate systems and conversions. More...
#include <../constants.scad>
Go to the source code of this file.
Functions | |
function | coordinates_name (s=base_coordinates) |
Return the name of the given coordinate system identifier. More... | |
function | convert_coordinate (c, from=base_coordinates, to=base_coordinates) |
Convert point from one coordinate system to another. More... | |
function | coordinates_cpc (c, r, t=false) |
Radially scale a list of 2d cartesian coordinates. More... | |
function | coordinates_pc (p, r, t=false) |
Radially scale and convert a list of 2d polar coordinates to cartesian. More... | |
function | coordinates_csc (c, r, t=false) |
Radially scale a list of 3d cartesian coordinates. More... | |
function | coordinates_sc (s, r, t=false) |
Radially scale and convert a list of 3d spherical coordinates to cartesian. More... | |
Variables | |
base_coordinates = "c" | |
<string> The base coordinate system. | |
coordinates_positive_angles = true | |
<boolean> When converting to angular measures add 360 to negative angles. | |
Coordinate systems 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 units_coordinate.scad.