Simply delegate to Point#getLength() as we already have it.

This commit is contained in:
Jürg Lehni 2013-06-17 08:28:37 -07:00
parent 9463f0078a
commit ccd0bf8f6b

View file

@ -72,8 +72,7 @@ var Line = Base.extend(/** @lends Line# */{
* @type Number
*/
getLength: function() {
var v = this.getVector();
return Math.sqrt(v.x * v.x + v.y * v.y);
return this.getVector().getLength();
},
/**