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

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

?? matrix.js

?? js基本操作
?? JS
?? 第 1 頁 / 共 2 頁
字號:
/*	Copyright (c) 2004-2006, The Dojo Foundation	All Rights Reserved.	Licensed under the Academic Free License version 2.1 or above OR the	modified BSD license. For more information on Dojo licensing, see:		http://dojotoolkit.org/community/licensing.shtml*/dojo.provide("dojo.gfx.matrix");dojo.require("dojo.lang.common");dojo.require("dojo.math.*");dojo.gfx.matrix.Matrix2D = function(arg){	// summary: a 2D matrix object	// description: Normalizes a 2D matrix-like object. If arrays is passed, 	//		all objects of the array are normalized and multiplied sequentially.	// arg: Object	//		a 2D matrix-like object, or an array of such objects	if(arg){		if(arg instanceof Array){			if(arg.length > 0){				var m = dojo.gfx.matrix.normalize(arg[0]);				// combine matrices				for(var i = 1; i < arg.length; ++i){					var l = m;					var r = dojo.gfx.matrix.normalize(arg[i]);					m = new dojo.gfx.matrix.Matrix2D();					m.xx = l.xx * r.xx + l.xy * r.yx;					m.xy = l.xx * r.xy + l.xy * r.yy;					m.yx = l.yx * r.xx + l.yy * r.yx;					m.yy = l.yx * r.xy + l.yy * r.yy;					m.dx = l.xx * r.dx + l.xy * r.dy + l.dx;					m.dy = l.yx * r.dx + l.yy * r.dy + l.dy;				}				dojo.mixin(this, m);			}		}else{			dojo.mixin(this, arg);		}	}};// the default (identity) matrix, which is used to fill in missing valuesdojo.extend(dojo.gfx.matrix.Matrix2D, {xx: 1, xy: 0, yx: 0, yy: 1, dx: 0, dy: 0});dojo.mixin(dojo.gfx.matrix, {	// summary: class constants, and methods of dojo.gfx.matrix		// matrix constants		// identity: dojo.gfx.matrix.Matrix2D	//		an identity matrix constant: identity * (x, y) == (x, y)	identity: new dojo.gfx.matrix.Matrix2D(),		// flipX: dojo.gfx.matrix.Matrix2D	//		a matrix, which reflects points at x = 0 line: flipX * (x, y) == (-x, y)	flipX:    new dojo.gfx.matrix.Matrix2D({xx: -1}),		// flipY: dojo.gfx.matrix.Matrix2D	//		a matrix, which reflects points at y = 0 line: flipY * (x, y) == (x, -y)	flipY:    new dojo.gfx.matrix.Matrix2D({yy: -1}),		// flipXY: dojo.gfx.matrix.Matrix2D	//		a matrix, which reflects points at the origin of coordinates: flipXY * (x, y) == (-x, -y)	flipXY:   new dojo.gfx.matrix.Matrix2D({xx: -1, yy: -1}),		// matrix creators		translate: function(a, b){		// summary: forms a translation matrix		// description: The resulting matrix is used to translate (move) points by specified offsets.		// a: Number: an x coordinate value		// b: Number: a y coordinate value		if(arguments.length > 1){			return new dojo.gfx.matrix.Matrix2D({dx: a, dy: b}); // dojo.gfx.matrix.Matrix2D		}		// branch		// a: dojo.gfx.Point: a point-like object, which specifies offsets for both dimensions		// b: null		return new dojo.gfx.matrix.Matrix2D({dx: a.x, dy: a.y}); // dojo.gfx.matrix.Matrix2D	},	scale: function(a, b){		// summary: forms a scaling matrix		// description: The resulting matrix is used to scale (magnify) points by specified offsets.		// a: Number: a scaling factor used for the x coordinate		// b: Number: a scaling factor used for the y coordinate		if(arguments.length > 1){			return new dojo.gfx.matrix.Matrix2D({xx: a, yy: b}); // dojo.gfx.matrix.Matrix2D		}		if(typeof a == "number"){			// branch			// a: Number: a uniform scaling factor used for the both coordinates			// b: null			return new dojo.gfx.matrix.Matrix2D({xx: a, yy: a}); // dojo.gfx.matrix.Matrix2D		}		// branch		// a: dojo.gfx.Point: a point-like object, which specifies scale factors for both dimensions		// b: null		return new dojo.gfx.matrix.Matrix2D({xx: a.x, yy: a.y}); // dojo.gfx.matrix.Matrix2D	},	rotate: function(angle){		// summary: forms a rotating matrix		// description: The resulting matrix is used to rotate points 		//		around the origin of coordinates (0, 0) by specified angle.		// angle: Number: an angle of rotation in radians (>0 for CCW)		var c = Math.cos(angle);		var s = Math.sin(angle);		return new dojo.gfx.matrix.Matrix2D({xx: c, xy: s, yx: -s, yy: c}); // dojo.gfx.matrix.Matrix2D	},	rotateg: function(degree){		// summary: forms a rotating matrix		// description: The resulting matrix is used to rotate points		//		around the origin of coordinates (0, 0) by specified degree.		//		See dojo.gfx.matrix.rotate() for comparison.		// degree: Number: an angle of rotation in degrees (>0 for CCW)		return dojo.gfx.matrix.rotate(dojo.math.degToRad(degree)); // dojo.gfx.matrix.Matrix2D	},	skewX: function(angle) {		// summary: forms an x skewing matrix		// description: The resulting matrix is used to skew points in the x dimension		//		around the origin of coordinates (0, 0) by specified angle.		// angle: Number: an skewing angle in radians		return new dojo.gfx.matrix.Matrix2D({xy: Math.tan(angle)}); // dojo.gfx.matrix.Matrix2D	},	skewXg: function(degree){		// summary: forms an x skewing matrix		// description: The resulting matrix is used to skew points in the x dimension		//		around the origin of coordinates (0, 0) by specified degree.		//		See dojo.gfx.matrix.skewX() for comparison.		// degree: Number: an skewing angle in degrees		return dojo.gfx.matrix.skewX(dojo.math.degToRad(degree)); // dojo.gfx.matrix.Matrix2D	},	skewY: function(angle){		// summary: forms a y skewing matrix		// description: The resulting matrix is used to skew points in the y dimension		//		around the origin of coordinates (0, 0) by specified angle.		// angle: Number: an skewing angle in radians		return new dojo.gfx.matrix.Matrix2D({yx: -Math.tan(angle)}); // dojo.gfx.matrix.Matrix2D	},	skewYg: function(degree){		// summary: forms a y skewing matrix		// description: The resulting matrix is used to skew points in the y dimension		//		around the origin of coordinates (0, 0) by specified degree.		//		See dojo.gfx.matrix.skewY() for comparison.		// degree: Number: an skewing angle in degrees		return dojo.gfx.matrix.skewY(dojo.math.degToRad(degree)); // dojo.gfx.matrix.Matrix2D	},		// ensure matrix 2D conformance	normalize: function(matrix){		// summary: converts an object to a matrix, if necessary		// description: Converts any 2D matrix-like object or an array of		//		such objects to a valid dojo.gfx.matrix.Matrix2D object.		// matrix: Object: an object, which is converted to a matrix, if necessary		return (matrix instanceof dojo.gfx.matrix.Matrix2D) ? matrix : new dojo.gfx.matrix.Matrix2D(matrix); // dojo.gfx.matrix.Matrix2D	},		// common operations		clone: function(matrix){		// summary: creates a copy of a 2D matrix		// matrix: dojo.gfx.matrix.Matrix2D: a 2D matrix-like object to be cloned		var obj = new dojo.gfx.matrix.Matrix2D();		for(var i in matrix){			if(typeof(matrix[i]) == "number" && typeof(obj[i]) == "number" && obj[i] != matrix[i]) obj[i] = matrix[i];		}		return obj; // dojo.gfx.matrix.Matrix2D	},	invert: function(matrix){		// summary: inverts a 2D matrix		// matrix: dojo.gfx.matrix.Matrix2D: a 2D matrix-like object to be inverted		var m = dojo.gfx.matrix.normalize(matrix);		var D = m.xx * m.yy - m.xy * m.yx;		var M = new dojo.gfx.matrix.Matrix2D({			xx: m.yy/D, xy: -m.xy/D, 			yx: -m.yx/D, yy: m.xx/D, 			dx: (m.yx * m.dy - m.yy * m.dx) / D, 			dy: (m.xy * m.dx - m.xx * m.dy) / D		});		return M; // dojo.gfx.matrix.Matrix2D	},	_multiplyPoint: function(m, x, y){		// summary: applies a matrix to a point		// matrix: dojo.gfx.matrix.Matrix2D: a 2D matrix object to be applied		// x: Number: an x coordinate of a point		// y: Number: a y coordinate of a point		return {x: m.xx * x + m.xy * y + m.dx, y: m.yx * x + m.yy * y + m.dy}; // dojo.gfx.Point	},	multiplyPoint: function(matrix, /* Number||Point */ a, /* Number, optional */ b){		// summary: applies a matrix to a point		// matrix: dojo.gfx.matrix.Matrix2D: a 2D matrix object to be applied		// a: Number: an x coordinate of a point		// b: Number: a y coordinate of a point		var m = dojo.gfx.matrix.normalize(matrix);		if(typeof a == "number" && typeof b == "number"){			return dojo.gfx.matrix._multiplyPoint(m, a, b); // dojo.gfx.Point		}		// branch		// matrix: dojo.gfx.matrix.Matrix2D: a 2D matrix object to be applied		// a: dojo.gfx.Point: a point		// b: null

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美色国产精品| 久久亚洲精品小早川怜子| 美女国产一区二区| 亚洲欧美另类在线| 欧美精品一区二区蜜臀亚洲| 91玉足脚交白嫩脚丫在线播放| 精品在线播放免费| 亚洲高清三级视频| 亚洲精品免费一二三区| 久久久精品欧美丰满| 欧美精品久久99久久在免费线| 91亚洲精品一区二区乱码| 国产精品综合在线视频| 日韩国产精品大片| 亚洲人123区| 国产精品久久久久久久裸模| 久久先锋影音av鲁色资源| 制服丝袜亚洲播放| 欧美色国产精品| 99精品黄色片免费大全| 欧美专区亚洲专区| 91丨九色丨国产丨porny| 国产高清精品网站| 国内精品写真在线观看| 精品视频123区在线观看| 99综合影院在线| 国产一区二区不卡| 国产精品欧美精品| 久久久五月婷婷| 欧美xxxx在线观看| 日韩欧美中文字幕制服| 欧美精品乱码久久久久久按摩| 美女视频网站久久| eeuss鲁片一区二区三区在线看| 欧美视频在线播放| 午夜久久久影院| 欧美美女直播网站| 日韩成人免费电影| 欧美成人性战久久| 福利一区二区在线观看| 日本一区免费视频| 色中色一区二区| 亚洲大片在线观看| 日韩一区国产二区欧美三区| 免费成人美女在线观看.| 欧美大片日本大片免费观看| 国产一区二区三区不卡在线观看| 久久精品视频在线免费观看| 国产成人精品影院| 亚洲日本在线a| 欧美主播一区二区三区美女| 日韩激情视频在线观看| 日韩免费高清电影| 国产成人精品免费视频网站| 国产精品视频一二三区| 色香色香欲天天天影视综合网| 亚洲成人资源在线| 精品久久久久av影院 | 婷婷夜色潮精品综合在线| 在线免费观看日本欧美| 日本va欧美va瓶| 欧美高清在线视频| 精品视频在线免费观看| 麻豆久久一区二区| 国产精品护士白丝一区av| 欧美日韩精品三区| 国产精品一区二区免费不卡| 亚洲一级二级在线| 久久综合久久综合亚洲| 在线精品观看国产| 精品写真视频在线观看| 亚洲激情一二三区| 久久青草国产手机看片福利盒子 | 欧美调教femdomvk| 黄色日韩三级电影| 一区二区三区精品视频| 26uuu另类欧美| 欧美亚洲日本一区| 粉嫩av亚洲一区二区图片| 天堂蜜桃91精品| 国产精品福利一区二区三区| 91精品在线免费| 一本大道综合伊人精品热热| 韩国三级电影一区二区| 亚洲1区2区3区4区| 日韩美女视频一区| 国产日韩在线不卡| 精品人伦一区二区色婷婷| 欧美亚州韩日在线看免费版国语版| 国产精品一区在线观看你懂的| 亚洲国产一区视频| 亚洲欧美日韩精品久久久久| 国产日韩视频一区二区三区| 精品国内片67194| 91精品久久久久久久99蜜桃| 色婷婷激情一区二区三区| 国产成人av电影在线播放| 蜜臀av性久久久久蜜臀aⅴ四虎 | 国模大尺度一区二区三区| 亚洲与欧洲av电影| 亚洲日本欧美天堂| 国产精品动漫网站| 欧美国产97人人爽人人喊| 久久精品一区二区三区不卡| 日韩写真欧美这视频| 正在播放亚洲一区| 欧美日韩高清一区二区不卡| 在线亚洲一区观看| 91国产视频在线观看| 色婷婷久久99综合精品jk白丝| 不卡一卡二卡三乱码免费网站| 国内精品在线播放| 国产真实精品久久二三区| 久久99九九99精品| 国产一区不卡视频| 国产精品中文字幕日韩精品| 国产精品夜夜嗨| 成人一级黄色片| 99精品久久99久久久久| 色拍拍在线精品视频8848| 欧美午夜精品久久久久久超碰| 欧美色网一区二区| 欧美一区二区三区成人| 精品福利一二区| 亚洲国产精品v| 成人免费在线观看入口| 亚洲最大色网站| 婷婷六月综合亚洲| 久久国产精品72免费观看| 高清在线观看日韩| 一本大道av一区二区在线播放| 欧美吻胸吃奶大尺度电影| 91精品国产综合久久精品| 欧美大片免费久久精品三p| 国产午夜一区二区三区| 日韩伦理免费电影| 五月天欧美精品| 国产乱码精品一品二品| 成人18视频日本| 欧美久久一二区| 久久这里都是精品| 亚洲欧美电影院| 日韩1区2区3区| 国产suv精品一区二区883| 色综合天天综合网天天狠天天| 欧美日韩亚洲综合在线| 精品国产91乱码一区二区三区| 中文字幕 久热精品 视频在线| 一区二区三区色| 美腿丝袜一区二区三区| av在线不卡电影| 欧美一区二区视频在线观看2022| 久久先锋资源网| 亚洲国产精品久久久久婷婷884| 麻豆免费看一区二区三区| 92国产精品观看| 日韩美一区二区三区| 一二三四社区欧美黄| 精品午夜一区二区三区在线观看| 波多野结衣在线一区| 制服丝袜亚洲播放| 最近日韩中文字幕| 麻豆国产91在线播放| 在线一区二区三区四区| 久久网站热最新地址| 亚洲精品免费播放| 国产二区国产一区在线观看| 欧美日韩精品专区| 中文字幕精品—区二区四季| 美女www一区二区| 欧美亚洲国产一区二区三区va| 国产色91在线| 日本一区中文字幕| 色综合av在线| 日本一区二区在线不卡| 激情综合色播五月| 欧美日韩一级片网站| 亚洲人成伊人成综合网小说| 国产盗摄女厕一区二区三区 | 裸体一区二区三区| 色av综合在线| 最新高清无码专区| 不卡电影一区二区三区| 国产女人aaa级久久久级| 麻豆国产一区二区| 91精品国产麻豆国产自产在线| 一区二区在线观看不卡| 91在线视频播放地址| 久久精品免视看| 国产乱理伦片在线观看夜一区| www国产精品av| 裸体健美xxxx欧美裸体表演| 日韩亚洲电影在线| 日韩高清在线电影| 欧美高清视频在线高清观看mv色露露十八| 亚洲欧洲性图库| 91在线国产观看| 亚洲欧美日韩中文字幕一区二区三区| 粉嫩av亚洲一区二区图片| 国产精品久久久久毛片软件|