src/Quaternion.js
function _normalizedCoordinates(x, y, z, w) {
  var magnitude = Math.sqrt(x * x + y * y + z * z + w * w);
  if (magnitude === 0)
    return this;

  return {
    "x": x / magnitude,
    "y": y / magnitude,
    "z": z / magnitude,
    "w": w / magnitude};
}
function _normalizedCoordinates(x, y, z, w) {
  var magnitude = Math.sqrt(x * x + y * y + z * z + w * w);
  if (magnitude === 0)
    return this;

  return {
    "x": x / magnitude,
    "y": y / magnitude,
    "z": z / magnitude,
    "w": w / magnitude};
}
function _normalizedCoordinates ( x , y , z , w ) { var magnitude = Math . sqrt ( x * x + y * y + z * z + w * w ) ; if ( magnitude === 0 ) return this ; return { "x" : x / magnitude , "y" : y / magnitude , "z" : z / magnitude , "w" : w / magnitude } ; }
Returns the normalized coordinates of the given quaternion coordinates

@param {Number} x y z w
@returns {Object} normalized coordinates
Returns the normalized coordinates of the given quaternion coordinates