diff --git a/src/vector.js b/src/vector.js index a41113a..aa9e09f 100644 --- a/src/vector.js +++ b/src/vector.js @@ -57,7 +57,7 @@ Vector.prototype = { }, toAngles: function() { return { - theta: Math.atan2(this.z, this.x), + theta: Math.atan2(this.y, this.x), phi: Math.asin(this.y / this.length()) }; },