摘要: 本人学习基本上参考了他们三位,在这里感谢他们的分享 当耐特专家 岑安 miloyip向量既有大小又有方向的量叫做向量(亦称矢量),与标量相对,用JS实现代码如下,直接搬miloyip的了 Vector2 = function(x, y) { this.x = x; this.y = y; }; Vector2.prototype = { copy: function() { return new Vector2(this.x, this.y); }, length: function() { return Math.sqr... 阅读全文
posted @ 2012-03-31 20:52 忧忧夏天 阅读(4162) 评论(1) 推荐(0) 编辑