conmapinv.m

来自「This toolbox contains Matlab code for se」· M 代码 · 共 31 行

M
31 行
字号
function xyz = conmapinv(c,xyzmap)% CONMAPINV : Inverse conformal map for geometric partitioning.%% [xyz,xy] = conmapinv(c,xyzmap):% Input is points xyzmap on a unit sphere in d-space% (one point per row of matrix xyz),% and a point c in d-space represented as a row vector.%% We compute the inverse of the conformal mapping in conmap.m.%% The output is the new points on the sphere.%% See GEOPART.%% John Gilbert and Shanghua Teng, 1992-1993.% Copyright (c) 1990-1996 by Xerox Corporation.  All rights reserved.% HELP COPYRIGHT for complete copyright and licensing notice.% Compute the reflection and stretch.[Q,r] = reflector(c);alpha = sqrt((1+r)/(1-r));% Unstretch.xymap = stereodown(xyzmap);xyref = alpha * xymap;xyzref = stereoup(xyref);% Unreflect.xyz = xyzref * Q';

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?