There was an error while loading. Please reload this page.
1 parent 9463f00 commit ccd0bf8Copy full SHA for ccd0bf8
1 file changed
src/basic/Line.js
@@ -72,8 +72,7 @@ var Line = Base.extend(/** @lends Line# */{
72
* @type Number
73
*/
74
getLength: function() {
75
- var v = this.getVector();
76
- return Math.sqrt(v.x * v.x + v.y * v.y);
+ return this.getVector().getLength();
77
},
78
79
/**
0 commit comments