提交 354a5c09 编写于 作者: S Sergey Romanov

add lengthManhatten

上级 d6384d20
......@@ -337,6 +337,11 @@ THREE.Vector2.prototype = {
},
lengthManhatten: function() {
return Math.abs( this.x ) + Math.abs( this.y );
},
normalize: function () {
return this.divideScalar( this.length() );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册