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.
|
| sph2euc_dist(s) |
function e = sph2euc_dist(s)
%SPHE2EUC_DIST Convert spherical to Euclidean distance
%
%Syntax
% e = sph2euc_dist(s);
%
%Description
% E = SPHE2EUC_DIST (S) converts the spherical distance S to Euclidean
% distance E, using a formula which is valid for the unit sphere in all
% dimensions.
%
% The argument S must be a real number or an array of real numbers.
% The result E will be an array of the same size as S.
%
%Note
% The argument S is assumed to satsify abs(S) <= pi.
%
%Examples
% > e=sph2euc_dist(pi)
% e =
% 2
%
% > e=sph2euc_dist(0:pi/4:pi)
% e =
% 0 0.7654 1.4142 1.8478 2.0000
%
%See also
% EUC2SPH_DIST, EUCLIDEAN_DIST, SPHERICAL_DIST
% Copyright 2004-2005 Paul Leopardi for the University of New South Wales.
% $Revision 1.10 $ $Date 2005-06-01 $
% Change name from s2e to sph2euc_dist
% Documentation files renamed
% $Revision 1.00 $ $Date 2005-02-12 $
%
% For licensing, see COPYING.
% For references, see AUTHORS.
% For revision history, see CHANGELOG.
e = 2*(sin(s/2));
%
% end function
|
|
Contact us at files@mathworks.com