omdl  v1.0
OpenSCAD Mechanical Design Library
linear_algebra.scad File Reference

Linear algebra mathematical functions. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions and/or Modules

function multmatrix_p (c, m)
 Multiply all coordinates by a 4x4 transformation matrix in 3D. More...
 
function translate_p (c, v)
 Translate all coordinates dimensions. More...
 
function mirror_p (c, m, o)
 Mirror all coordinates about a plane or line defined by a normal vector. More...
 
function rotate_p (c, a, av, center=false, o)
 Rotate all coordinates about one or more axes in 2D or 3D. More...
 
function transform_p (c, m, a, av, center=false, o, t)
 Apply an optional mirror, rotation, and translation to a list of 2D or 3D coordinates. More...
 
function shear_p (c, s, center=false, o)
 Shear all coordinates in 2D or 3D. More...
 
function scale_p (c, v, center=false, o)
 Scale all coordinates dimensions. More...
 
function resize_p (c, v, center=false, o)
 Scale all coordinates dimensions proportionately to fit inside a region. More...
 
function center_p (c)
 Center all coordinates about the origin. More...
 

File Details

Linear algebra mathematical functions.

Author
Roy Allen Sutton
Date
2015-2023, 2026

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 linear_algebra.scad.