No BSD License
-
area_of_cap(dim, s_cap)
AREA_OF_CAP Area of spherical cap
-
area_of_collar(dim, a_top, a_...
AREA_OF_COLLAR Area of spherical collar
-
area_of_ideal_region(dim,N)
AREA_OF_IDEAL_REGION Area of one region of an EQ partition
-
area_of_sphere(dim)
AREA_OF_SPHERE Area of sphere
-
calc_dist_coeff(dim,N,min_euc...
CALC_DIST_COEFF Coefficient of minimum distance
-
calc_energy_coeff(dim,N,s,ene...
CALC_ENERGY_COEFF Coefficient of second term in expansion of energy
-
calc_packing_density(dim,N,mi...
CALC_PACKING_DENSITY Density of packing given by minimum distance
-
cart2polar2(x)
CART2POLAR2 Convert from Cartesian to spherical coordinates on sphere S^2
-
eq_area_error(dim,N)
EQ_AREA_ERROR Total area error and max area error per region of an EQ partition
-
eq_caps(dim,N)
EQ_CAPS Partition a sphere into to nested spherical caps
-
eq_diam_bound(dim,N)
EQ_DIAM_BOUND Maximum per-region diameter bound of EQ partition
-
eq_diam_coeff(dim,N)
EQ_DIAM_COEFF Coefficients of diameter bound and vertex diameter of EQ partition
-
eq_dist_coeff(dim,N,varargin)
EQ_DIST_COEFF Coefficient of minimum distance of an EQ point set
-
eq_energy_coeff(dim,N,s,varar...
EQ_ENERGY_COEFF Coefficient in expansion of energy of an EQ point set
-
eq_energy_dist(dim,N,s,vararg...
EQ_ENERGY_DIST Energy and minimum distance of an EQ point set
-
eq_min_dist(dim,N,varargin)
EQ_MIN_DIST Minimum distance between center points of an EQ partition
-
eq_packing_density(dim,N,vara...
EQ_PACKING_DENSITY Density of packing given by minimum distance of EQ point set
-
eq_point_set(dim,N,varargin)
EQ_POINT_SET Center points of regions of EQ partition, in Cartesian coordinates
-
eq_point_set_polar(dim,N,vara...
EQ_POINT_SET_POLAR Center points of regions of an EQ partition
-
eq_point_set_property(fhandle...
EQ_POINT_SET_PROPERTY Property of an EQ point set
-
eq_regions(dim,N,varargin)
EQ_REGIONS Recursive zonal equal area (EQ) partition of sphere
-
eq_regions_property(fhandle,d...
EQ_REGIONS_PROPERTY Property of regions of an EQ partition
-
eq_vertex_diam(dim,N)
EQ_VERTEX_DIAM Maximum vertex diameter of EQ partition
-
eq_vertex_diam_coeff(dim,N)
EQ_VERTEX_DIAM_COEFF Coefficient of maximum vertex diameter of EQ partition
-
euc2sph_dist(e)
EUC2SPH_DIST Convert Euclidean to spherical distance
-
euclidean_dist(x,y)
EUCLIDEAN_DIST Euclidean distance between two points in Cartesian coordinates
-
fatcurve(c,r)
FATCURVE Create a parameterized cylindrical surface at radius r from curve c
-
haslight(axish)
HASLIGHT Check if axis handle has a light attached
-
ideal_collar_angle(dim,N)
IDEAL_COLLAR_ANGLE The ideal angle for spherical collars of an EQ partition
-
illustrate_eq_algorithm(dim,N...
ILLUSTRATE_EQ_ALGORITHM Illustrate the EQ partition algorithm
-
illustration_options(gdefault...
ILLUSTRATION_OPTIONS Options for illustrations of EQ partitions
-
install_eq_toolbox(arg)
INSTALL_EQ_TOOLBOX Install using Toolbox Installer, with sensible defaults
-
partition_options(pdefault, v...
PARTITION_OPTIONS Options for EQ partition
-
point_set_dist_coeff(points)
POINT_SET_DIST_COEFF Coefficient of minimum distance of a point set
-
point_set_energy_coeff(points...
POINT_SET_ENERGY_COEFF Coefficient in expansion of energy of a point set
-
point_set_energy_dist(points,...
POINT_SET_ENERGY_DIST Energy and minimum distance of a point set
-
point_set_min_dist(points)
POINT_SET_MIN_DIST Minimum distance between points of a point set
-
point_set_packing_density(poi...
POINT_SET_PACKING_DENSITY Density of packing given by minimum distance of a point set
-
polar2cart(s)
POLAR2CART Convert spherical polar to Cartesian coordinates
-
project_point_set(points,vara...
PROJECT_POINT_SET Use projection to illustrate a point set of S^2 or S^3
-
project_s2_partition(N,vararg...
PROJECT_S2_PARTITION Use projection to illustrate an EQ partition of S^2
-
project_s3_partition(N,vararg...
PROJECT_S3_PARTITION Use projection to illustrate an EQ partition of S^3
-
show_r3_point_set(points_x,va...
SHOW_R3_POINT_SET 3D illustration of a point set
-
show_s2_partition(N,varargin)
SHOW_S2_PARTITION 3D illustration of an EQ partition of S^2
-
sph2euc_dist(s)
SPHE2EUC_DIST Convert spherical to Euclidean distance
-
spherical_dist(x,y)
SPHERICAL_DIST Spherical distance between two points on the sphere
-
sradius_of_cap(dim, area)
SRADIUS_OF_CAP Spherical radius of spherical cap of given area
-
uninstall_eq_toolbox(arg)
UNINSTALL_EQ_TOOLBOX Uninstall using Toolbox Installer.
-
volume_of_ball(dim)
VOLUME_OF_BALL Volume of the unit ball
-
Contents.m
-
Contents.m
-
Contents.m
-
Contents.m
-
Contents.m
-
Contents.m
-
Contents.m
-
View all files
from
EQSP: Recursive Zonal Sphere Partitioning Toolbox
by Paul Leopardi
A suite of Matlab functions intended for use in exploring equal area sphere partitioning.
|
| cart2polar2(x) |
function s = cart2polar2(x)
%CART2POLAR2 Convert from Cartesian to spherical coordinates on sphere S^2
%
%Syntax
% s = cart2polar2(x);
%
%Description
% S = CART2POLAR2(X) sets S to be the spherical polar coordinates of the points
% represented by the Cartesian coordinates X:
% S = [phi;theta]: phi in [0, 2*pi), theta in [0, pi].
%
% The argument X must be an array of real numbers of size (3 by N), where N is
% any positive integer. The result S will be an array of size (2 by N).
%
%Examples
% > x
% x =
% 0 0.0000 -0.0000 0.0000
% 0 1.0000 -1.0000 0
% 1.0000 0.0000 0.0000 -1.0000
%
% > s=cart2polar2(x)
% s =
% 0 1.5708 4.7124 0
% 0 1.5708 1.5708 3.1416
%
%Note
% CART2POLAR2(X) projects any X in R^3 onto the sphere S^2 via a line through
% the origin. The origin [0 0 0]' is itself projected onto a point on the
% equator such that
%
% POLAR2CART(CART2POLAR2([0 0 0]')) == [1 0 0]'.
%
%See also
% POLAR2CART
% Copyright 2004-2005 Paul Leopardi for the University of New South Wales.
% $Revision 1.10 $ $Date 2005-06-01 $
% Documentation files renamed
% $Revision 1.10 $ $Date 2005-05-28 $
% Use cart2sph
% Change name from x2s2 to cart2polar2
% $Revision 1.00 $ $Date 2005-02-12 $
%
% For licensing, see COPYING.
% For references, see AUTHORS.
% For revision history, see CHANGELOG.
[phi, theta] = cart2sph(x(1,:),x(2,:),x(3,:));
s = [mod(phi, 2*pi); pi/2-theta];
|
|
Contact us at files@mathworks.com