Home > matGeom > geom3d > transforms3d.m

transforms3d

PURPOSE ^

TRANSFORMS3D Conventions for manipulating 3D affine transforms.

SYNOPSIS ^

function transforms3d(varargin)

DESCRIPTION ^

TRANSFORMS3D  Conventions for manipulating 3D affine transforms.

   By 'transform' we mean an affine transform. A 3D affine transform
   is represented by a 4*4 matrix. The last row of the matrix is equal to
   [0 0 0 1].

   

   Example:
   % create a translation by the vector [10 20 30]:
   T = createTranslation3d([10 20 30]);
   % Transform a basic point:
   PT1 = [4 5 6];
   PT2 = transformPoint3d(PT1, T)
   % returns:
   PT2 = 
       14   25   36

   See also
   createTranslation3d, createScaling3d, , createBasisTransform3d
   createRotationOx, createRotationOy, createRotationOz
   rotation3dAxisAndAngle, rotation3dToEulerAngles,
   createRotation3dLineAngle, eulerAnglesToRotation3d
   transformPoint3d, transformVector3d, transformLine3d, transformPlane3d
   composeTransforms3d, recenterTransform3d

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function transforms3d(varargin)
0002 %TRANSFORMS3D  Conventions for manipulating 3D affine transforms.
0003 %
0004 %   By 'transform' we mean an affine transform. A 3D affine transform
0005 %   is represented by a 4*4 matrix. The last row of the matrix is equal to
0006 %   [0 0 0 1].
0007 %
0008 %
0009 %
0010 %   Example:
0011 %   % create a translation by the vector [10 20 30]:
0012 %   T = createTranslation3d([10 20 30]);
0013 %   % Transform a basic point:
0014 %   PT1 = [4 5 6];
0015 %   PT2 = transformPoint3d(PT1, T)
0016 %   % returns:
0017 %   PT2 =
0018 %       14   25   36
0019 %
0020 %   See also
0021 %   createTranslation3d, createScaling3d, , createBasisTransform3d
0022 %   createRotationOx, createRotationOy, createRotationOz
0023 %   rotation3dAxisAndAngle, rotation3dToEulerAngles,
0024 %   createRotation3dLineAngle, eulerAnglesToRotation3d
0025 %   transformPoint3d, transformVector3d, transformLine3d, transformPlane3d
0026 %   composeTransforms3d, recenterTransform3d
0027 %
0028 
0029 % ------
0030 % Author: David Legland
0031 % e-mail: david.legland@inra.fr
0032 % Created: 2008-10-13,    using Matlab 7.4.0.287 (R2007a)
0033 % Copyright 2008 INRA - BIA PV Nantes - MIAJ Jouy-en-Josas.

Generated on Wed 16-Feb-2022 15:10:47 by m2html © 2003-2019