亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? spaces.c

?? unix vnc 協議源碼. VNC是一款遠程控制工具軟件.
?? C
?? 第 1 頁 / 共 3 頁
字號:
*/ struct xobject *t1_Xform(obj, M)       register struct xobject *obj;  /* object to transform                 */       register double M[2][2];    /* transformation matrix                  */{       if (obj == NULL)               return(NULL);        if (obj->type == FONTTYPE) {               register struct font *F = (struct font *) obj;                F = UniqueFont(F);               return((struct xobject*)F);       }       if (obj->type == PICTURETYPE) {/*In the case of a picture, we choose both to update the picture'stransformation matrix and keep the handles up to date.*/               register struct picture *P = (struct picture *) obj;               register struct segment *handles;  /* temporary path to transform handles */                P = UniquePicture(P);               handles = PathSegment(LINETYPE, P->origin.x, P->origin.y);               handles = Join(handles,                              PathSegment(LINETYPE, P->ending.x, P->ending.y) );               handles = (struct segment *)Xform((struct xobject *) handles, M);               P->origin = handles->dest;               P->ending = handles->link->dest;               KillPath(handles);               return((struct xobject *)P);       }        if (ISPATHTYPE(obj->type)) {               struct XYspace pseudo;  /* local temporary space              */               PseudoSpace(&pseudo, M);               return((struct xobject *) PathTransform(obj, &pseudo));       }         if (obj->type == SPACETYPE) {               register struct XYspace *S = (struct XYspace *) obj; /* replaced ISPERMANENT(S->flag) with S->references > 1 3-26-91 PNM */               if (S->references > 1)                       S = CopySpace(S);               else                       S->ID = NEXTID;                MatrixMultiply(S->tofract.normal, M, S->tofract.normal);               /*               * mark inverted matrix invalid:               */               S->flag &= ~HASINVERSE(ON);                FillOutFcns(S);               return((struct xobject *) S);       }        return(ArgErr("Untransformable object", obj, obj));} /*:h3.Transform() - Transform an Object This is the external user's entry point.*/struct xobject *t1_Transform(obj, cxx, cyx, cxy, cyy)       struct xobject *obj;       double cxx,cyx,cxy,cyy;  /* 2x2 transform matrix elements in row order */{       double M[2][2];        IfTrace1((MustTraceCalls),"Transform(%z,", obj);       IfTrace4((MustTraceCalls)," %f %f %f %f)\n", &cxx, &cyx, &cxy, &cyy);        M[0][0] = cxx;       M[0][1] = cyx;       M[1][0] = cxy;       M[1][1] = cyy;       ConsiderContext(obj, M);       return(Xform(obj, M));}/*:h3.Scale() - Special Case of Transform() This is a user operator.*/ struct xobject *t1_Scale(obj, sx, sy)       struct xobject *obj;  /* object to scale                              */       double sx,sy;         /* scale factors in x and y                     */{       double M[2][2];       IfTrace3((MustTraceCalls),"Scale(%z, %f, %f)\n", obj, &sx, &sy);       M[0][0] = sx;       M[1][1] = sy;       M[1][0] = M[0][1] = 0.0;       ConsiderContext(obj, M);       return(Xform(obj, M));} /*:h3 id=rotate.Rotate() - Special Case of Transform() We special-case different settings of 'degrees' for performanceand accuracy within the DegreeSin() and DegreeCos() routines themselves.*/ #ifdef notdefstruct xobject *xiRotate(obj, degrees)       struct xobject *obj;  /* object to be transformed                     */       double degrees;       /* degrees of COUNTER-clockwise rotation        */{       double M[2][2];         IfTrace2((MustTraceCalls),"Rotate(%z, %f)\n", obj, &degrees);        M[0][0] = M[1][1] = DegreeCos(degrees);       M[1][0] = - (M[0][1] = DegreeSin(degrees));       ConsiderContext(obj, M);       return(Xform(obj, M));}#endif /*:h3.PseudoSpace() - Build a Coordinate Space from a Matrix Since we have built all this optimized code that, given an (x,y) anda coordinate space, yield transformed (x,y), it seems a shame not touse the same logic when we need to multiply an (x,y) by an arbitrarymatrix that is not (initially) part of a coordinate space.  Thissubroutine takes the arbitrary matrix and builds a coordinatespace, with all its nifty function pointers.*/ void PseudoSpace(S, M)       struct XYspace *S;    /* coordinate space structure to fill out       */       double M[2][2];       /* matrix that will become 'tofract.normal'     */{       S->type = SPACETYPE;       S->flag = ISPERMANENT(ON) + ISIMMORTAL(ON);       S->references = 2;   /* 3-26-91 added PNM  */       S->tofract.normal[0][0] = M[0][0];       S->tofract.normal[1][0] = M[1][0];       S->tofract.normal[0][1] = M[0][1];       S->tofract.normal[1][1] = M[1][1];        FillOutFcns(S);} /*:h2 id=matrixa.Matrix Arithmetic Following the convention in Newman and Sproull, :hp1/InteractiveComputer Graphics/,matrices are organized::xmp.       | cxx   cyx |       | cxy   cyy |:exmp.A point is horizontal, for example::xmp.       [ x y ]:exmp.This means that::formula/x prime = cxx times x + cxy times y/:formula/y prime = cyx times x + cyy times y/I've seen the other convention, where transform matrices aretransposed, equally often in the literature.*/ /*:h3.MatrixMultiply() - Implements Multiplication of Two Matrices Implements matrix multiplication, A * B = C. To remind myself, matrix multiplication goes rows of A times columnsof B.The output matrix may be the same as one of the input matrices.*/void MatrixMultiply(A, B, C)       register double A[2][2],B[2][2];  /* input matrices                   */       register double C[2][2];    /* output matrix                          */{       register double txx,txy,tyx,tyy;        txx = A[0][0] * B[0][0] + A[0][1] * B[1][0];       txy = A[1][0] * B[0][0] + A[1][1] * B[1][0];       tyx = A[0][0] * B[0][1] + A[0][1] * B[1][1];       tyy = A[1][0] * B[0][1] + A[1][1] * B[1][1];        C[0][0] = txx;       C[1][0] = txy;       C[0][1] = tyx;       C[1][1] = tyy;}/*:h3.MatrixInvert() - Invert a Matrix My reference for matrix inversion was :hp1/Elementary Linear Algebra/by Paul C. Shields, Worth Publishers, Inc., 1968.*/void MatrixInvert(M, Mprime)       double M[2][2];       /* input matrix                                 */       double Mprime[2][2];    /* output inverted matrix                     */{       register double D;    /* determinant of matrix M                      */       register double txx,txy,tyx,tyy;        txx = M[0][0];       txy = M[1][0];       tyx = M[0][1];       tyy = M[1][1];        D = M[1][1] * M[0][0] - M[1][0] * M[0][1];       if (D == 0.0)               abort("MatrixInvert:  can't");        Mprime[0][0] = tyy / D;       Mprime[1][0] = -txy / D;       Mprime[0][1] = -tyx / D;       Mprime[1][1] = txx / D;}/*:h2.Initialization, Queries, and Debug*//*:h3.InitSpaces() - Initialize Constant Spaces For compatibility, we initialize a coordinate space called USER whichmaps 72nds of an inch to pels on the default device.*/ struct XYspace *USER = &identity; void InitSpaces(){       extern char *DEFAULTDEVICE;        IDENTITY->type = SPACETYPE;       FillOutFcns(IDENTITY);        contexts[NULLCONTEXT].normal[1][0]             = contexts[NULLCONTEXT].normal[0][1]             = contexts[NULLCONTEXT].inverse[1][0]             = contexts[NULLCONTEXT].inverse[0][1] = 0.0;       contexts[NULLCONTEXT].normal[0][0]             = contexts[NULLCONTEXT].normal[1][1]             = contexts[NULLCONTEXT].inverse[0][0]             = contexts[NULLCONTEXT].inverse[1][1] = 1.0;        USER->flag |= ISIMMORTAL(ON);       CoerceInverse(USER);}/*:h3.QuerySpace() - Returns the Transformation Matrix of a Space Since the tofract matrix of an XYspace includes the scale factornecessary to produce fractpel results (i.e., FRACTFLOAT), thismust be taken out before we return the matrix to the user.  Fortunately,this is simple:  just multiply by the inverse of IDENTITY!*/ void QuerySpace(S, cxxP, cyxP, cxyP, cyyP)       register struct XYspace *S;  /* space asked about                     */       register double *cxxP,*cyxP,*cxyP,*cyyP;  /* where to put answer      */{       double M[2][2];       /* temp matrix to build user's answer           */        if (S->type != SPACETYPE) {               ArgErr("QuerySpace: not a space", S, NULL);               return;       }       MatrixMultiply(S->tofract.normal, IDENTITY->tofract.inverse, M);       *cxxP = M[0][0];       *cxyP = M[1][0];       *cyxP = M[0][1];       *cyyP = M[1][1];} /*:h3.FormatFP() - Format a Fixed Point Pel We format the pel as "dddd.XXXX", where XX's are hexidecimal digits,and the dd's are decimal digits.  This might be a little confusingmixing hexidecimal and decimal like that, but it is convenientto use for debug. We make sure we have N (FRACTBITS/4) digits past the decimal point.*/#define  FRACTMASK   ((1<<FRACTBITS)-1)  /* mask for fractional part         */ void FormatFP(string, fpel)       register char *string;  /* output string                              */       register fractpel fpel; /* fractional pel input                       */{       char temp[8];       register char *s;       register char *sign;        if (fpel < 0) {               sign = "-";               fpel = -fpel;       }       else               sign = "";        sprintf(temp, "000%x", fpel & FRACTMASK);       s = temp + strlen(temp) - (FRACTBITS/4);        sprintf(string, "%s%d.%sx", sign, fpel >> FRACTBITS, s);} /*:h3.DumpSpace() - Display a Coordinate Space*//*ARGSUSED*/void DumpSpace(S)       register struct XYspace *S;{       IfTrace4(TRUE,"--Coordinate space at %x,ID=%d,convert=%x,iconvert=%x\n",                   S, S->ID, S->convert, S->iconvert);       IfTrace2(TRUE,"             |  %12.3f  %12.3f  |",                   &S->tofract.normal[0][0], &S->tofract.normal[0][1]);       IfTrace2(TRUE,"   [  %p  %p ]\n", S->itofract[0][0], S->itofract[0][1]);       IfTrace2(TRUE,"             |  %12.3f  %12.3f  |",                   &S->tofract.normal[1][0], &S->tofract.normal[1][1]);       IfTrace2(TRUE,"   [  %p  %p ]\n", S->itofract[1][0], S->itofract[1][1]);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕中文字幕一区| 99久久夜色精品国产网站| 欧美群妇大交群中文字幕| 亚洲一区二区三区爽爽爽爽爽| 91在线视频网址| 亚洲蜜臀av乱码久久精品蜜桃| 日本高清成人免费播放| 亚洲国产日韩一级| 91精品国产综合久久久久久久久久 | 成人app软件下载大全免费| 国产精品乱人伦| 欧美中文字幕一区| 日韩影院精彩在线| 久久久久九九视频| 99久久精品免费精品国产| 一区二区不卡在线播放| 欧美日韩国产片| 久久精品国产精品亚洲综合| 久久精品人人做人人综合| 91色porny蝌蚪| 日韩av在线发布| 久久久久久久久久久99999| 99久久99久久综合| 日韩一区欧美二区| 久久精子c满五个校花| 在线看国产日韩| 狠狠狠色丁香婷婷综合久久五月| 中文字幕国产一区二区| 欧美剧情电影在线观看完整版免费励志电影 | 国产成人精品亚洲日本在线桃色| 亚洲人成7777| 欧美xxxxxxxx| 欧美自拍偷拍一区| 国产一区不卡视频| 亚洲电影第三页| 国产日产欧产精品推荐色 | 国产精品女主播在线观看| 欧美日韩中文精品| 国产成人精品网址| 免费在线观看成人| 亚洲色图第一区| 精品sm在线观看| 欧美午夜寂寞影院| 国产成人综合亚洲91猫咪| 日韩专区欧美专区| 亚洲精品中文在线观看| 久久色视频免费观看| 欧美日韩国产一区二区三区地区| 国产成人av电影| 免费观看久久久4p| 一区二区三区电影在线播| 久久久精品黄色| 日韩一区二区不卡| 欧美在线观看视频一区二区| 成人免费高清在线| 国产伦精品一区二区三区在线观看| 亚洲一区二区三区三| 日本一区免费视频| 久久综合九色欧美综合狠狠 | 一区二区三区四区视频精品免费| www激情久久| 91精品久久久久久久99蜜桃| 91女人视频在线观看| 成人av在线影院| 国产精品影视网| 国产一区二区三区四区在线观看| 日韩av成人高清| 亚洲电影激情视频网站| 亚洲日本乱码在线观看| 国产精品区一区二区三区| 精品少妇一区二区三区视频免付费 | 日本v片在线高清不卡在线观看| 亚洲欧美一区二区三区极速播放 | 亚洲精品国产无天堂网2021| 中文字幕永久在线不卡| 久久精品视频一区二区三区| 精品国产伦一区二区三区观看体验 | 日韩精品免费视频人成| 亚洲成av人综合在线观看| 亚洲影院在线观看| 亚洲一区二区三区视频在线播放| 亚洲二区在线观看| 亚洲成人动漫在线免费观看| 午夜久久久久久电影| 亚洲va国产va欧美va观看| 亚洲va欧美va国产va天堂影院| 亚洲一区二区三区美女| 午夜久久电影网| 日韩在线卡一卡二| 久久国产精品色| 国产精品一二三四区| 国产成人免费在线| 91蜜桃视频在线| 欧美亚洲综合久久| 欧美一区欧美二区| 2023国产精品| 国产精品国产成人国产三级| 亚洲柠檬福利资源导航| 亚洲www啪成人一区二区麻豆| 日韩精品亚洲一区| 国产一区激情在线| av亚洲精华国产精华精| 欧美日韩在线播| 欧美电影免费提供在线观看| 欧美精彩视频一区二区三区| 亚洲欧洲一区二区在线播放| 午夜亚洲国产au精品一区二区| 青娱乐精品视频在线| 国产成人精品亚洲777人妖| 91麻豆精品一区二区三区| 69久久99精品久久久久婷婷| 久久新电视剧免费观看| 日韩一区在线播放| 青青草成人在线观看| 风间由美性色一区二区三区| 欧美性色黄大片| 精品sm在线观看| 亚洲一区二区综合| 捆绑紧缚一区二区三区视频 | 欧美日韩一级片网站| 精品嫩草影院久久| 自拍偷自拍亚洲精品播放| 日av在线不卡| 91黄视频在线观看| 久久久精品黄色| 天堂蜜桃91精品| 风间由美一区二区av101 | 欧美精品一区二区三区在线播放| 国产精品灌醉下药二区| 免费成人av在线| 欧美最猛性xxxxx直播| 欧美国产激情二区三区| 日韩黄色小视频| 色婷婷av一区二区| 久久久不卡影院| 青青草97国产精品免费观看无弹窗版| 国产不卡在线一区| 日韩一级完整毛片| 一区二区三区欧美激情| 国产成人av电影免费在线观看| 精品少妇一区二区| 亚洲va天堂va国产va久| 日本电影欧美片| 国产精品无遮挡| 国产精品亚洲成人| 欧美精品一区二区三区在线| 日韩不卡一区二区三区| 91福利小视频| 亚洲欧美日韩系列| 成人视屏免费看| 久久久国产精品午夜一区ai换脸| 91视频国产观看| 99re这里都是精品| 成人精品免费视频| 在线观看欧美黄色| 亚洲色图欧洲色图| 国产精品18久久久久久久网站| 色偷偷久久人人79超碰人人澡| 久久综合久久综合久久综合| 欧美国产精品中文字幕| 美女一区二区三区| 欧美日韩激情一区二区三区| 2024国产精品| 久久精品国产**网站演员| 日韩亚洲国产中文字幕欧美| 亚洲综合成人在线视频| 99精品国产热久久91蜜凸| 欧美丰满嫩嫩电影| 喷白浆一区二区| 欧美精品久久99| 亚洲与欧洲av电影| 精品中文av资源站在线观看| 日韩视频国产视频| 亚洲成人动漫在线免费观看| 欧美日韩情趣电影| 日韩经典一区二区| 6080亚洲精品一区二区| 蜜臀99久久精品久久久久久软件| 欧美日本国产一区| 看片网站欧美日韩| 美女视频黄免费的久久| 国产精品久久久久久久久免费桃花 | 欧美日韩你懂得| 天天影视涩香欲综合网| 欧美人狂配大交3d怪物一区| 亚洲综合图片区| 成人午夜电影小说| 亚洲精品国产无套在线观| 99久久99久久免费精品蜜臀| 国产精品福利一区二区三区| 色噜噜狠狠一区二区三区果冻| 亚洲人成影院在线观看| 91在线高清观看| 一区二区三区欧美激情| 欧美日精品一区视频| 日本亚洲视频在线| 欧美国产禁国产网站cc| 91麻豆精品在线观看| 午夜久久电影网| 亚洲国产高清aⅴ视频|