📄 mainwz2dmapstest.html
字号:
<TITLE>WZ 1.1: 2D coordinates</TITLE><H1>2D Coordinates</H1> <P>There are a lot of predefined standard systems of 2D coordinates.We have a single general proxy <B>wz2dmap</B> for them:<PRE>#include "coglib.hxx"int main(){ wz2dmap c,c1,c2;</PRE> <P>There are various 2D coordinates:<PRE> c = new wz2Dcoordinates(); c = new wz2DroundedBox(1.0,1.0,1.0); c = new wz2DshiftShukovski(); c = new wz2Dshukovski(); c = new wz2Dacosh(); c = new wz2Dcosh(); c = new wz2Dlog(); c = new wz2Dexp();</PRE><H2>Composition</H2> <P>They may be composed with each other at instantiation time andlater:<PRE> c2 = new wz2Dexp(c1 = new wz2Dlog); c2->compose(c1);</PRE> <P>Composition in above cases means the following order: <I>x = c2(c1(u))</I><H2>Computation of values</H2> <P>The transformation may be applied in the following way:<PRE> wzFloat u[2] = {0.0,0.0}; wzFloat x[2],v[2]; (*c)(x,u); // means x = c(u); c->call(x,u); // a synonym; c->inverse(v,x); // the inverse transformation;</PRE><H2>Affine transformations</H2> <P>Affine transformations may be added with the following operations:<PRE> c->stretch(2.0); c->switchXY(); c->rotate(0.25*wzPi); c->shift(0.5,0.5);</PRE> <P>Affine transformations may be called multiple times, in this casethey will be composed in the order of the calls. Order obviouslymatters.<H2>Misc</H2> <P>Some information about given coordinates may be obtained by<PRE> c->print(); fine();}</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -