<< atan2 Geometry unitVec >>

scilib_geo >> Geometry > sphere

sphere

Creates a point cloud (mesh) of a spherical surface.

Calling Sequence

[xx,yy,zz] = sphere(radius,[orig])

Parameters

radius

radius of the sphere.

orig

Origin of the sphere in [x,y,z], optional (default [0 0 0]).

xx

Matrix 40x20 of the x-coordinates.

yy

Matrix 40x20 of the y-coordinates.

zz

Matrix 40x20 of the z-coordinates.

Description

Creates a point cloud (mesh) of a spherical surface. Can be used for plot3d().

Examples

[xx,yy,zz] = sphere(5);
[xx,yy,zz] = sphere(5,[100,5,5]);
plot3d2(xx,yy,zz);

Authors


Report an issue
<< atan2 Geometry unitVec >>