SPHERES Description of functions operating on 3D spheres. Spheres are represented by their center and their radius: S = [xc yc zc r]; An ellipsoid is defined by: ELL = [XC YC ZC A B C PHI THETA PSI] where [XC YC ZY] is the center, [A B C] are length of semi-axes (in decreasing order), and [PHI THETA PSI] are euler angles representing the ellipsoid orientation. See also createSphere, equivalentEllipsoid intersectLineSphere, intersectPlaneSphere, sphericalVoronoiDomain drawSphere, drawEllipsoid, fillSphericalTriangle, fillSphericalPolygon drawSphericalEdge, drawSphericalTriangle, drawSphericalPolygon
0001 function spheres(varargin) 0002 %SPHERES Description of functions operating on 3D spheres. 0003 % 0004 % Spheres are represented by their center and their radius: 0005 % S = [xc yc zc r]; 0006 % 0007 % An ellipsoid is defined by: 0008 % ELL = [XC YC ZC A B C PHI THETA PSI] 0009 % where [XC YC ZY] is the center, [A B C] are length of semi-axes (in 0010 % decreasing order), and [PHI THETA PSI] are euler angles representing 0011 % the ellipsoid orientation. 0012 % 0013 % See also 0014 % createSphere, equivalentEllipsoid 0015 % intersectLineSphere, intersectPlaneSphere, sphericalVoronoiDomain 0016 % drawSphere, drawEllipsoid, fillSphericalTriangle, fillSphericalPolygon 0017 % drawSphericalEdge, drawSphericalTriangle, drawSphericalPolygon 0018 % 0019 0020 % ------ 0021 % Author: David Legland 0022 % e-mail: david.legland@inra.fr 0023 % Created: 2008-10-13, using Matlab 7.4.0.287 (R2007a) 0024 % Copyright 2008 INRA - BIA PV Nantes - MIAJ Jouy-en-Josas.