 /**
 Returns a new vector whose coordinates are the division of the left-hand vector coordinates by those of the right-hand vector
 
-    var v1 = C4Vector(x: 1, y: 1, z:0)
+    var v1 = C4Vector(x: 1, y: 1)
     var v2 = v1 / 2.0
     v2 //-> {0.5,0.5,0}
 */

/**
Returns a new vector whose coordinates are the sum of both input vectors

    var v1 = C4Vector(x: 1, y: 1, z:0)
    var v2 = C4Vector(x: 1, y: 1, z:0)
    v1+v2 //-> {2,2,0}
*/
public func + (lhs: C4Vector, rhs: C4Vector) -> C4Vector {
    return C4Vector(x: lhs.x + rhs.x, y: lhs.y + rhs.y, z: lhs.z + rhs.z)

    }

    /**
      Create a vector with a polar representation: a magnitude and an angle in radians. The `z` variable is optional.
      http://en.wikipedia.org/wiki/Polar_coordinate_system
    
        let m = sqrt(2.0)
        let h = M_PI_4
        let v = C4Vector(magnitude: m, heading: h)
        v //-> {1,1,0}
     */
    public init(magnitude: Double, heading: Double, z: Double = 0) {
