public Vector3D set(double xyz[])
    {
        if (xyz.length < 2)
            throw new IllegalArgumentException("There must be at least 2 dimensions!");
        
        this.x = xyz[0];
        this.y = xyz[1];
        
        if (xyz.length >= 3)
            this.z = xyz[3];
        
        return this;
    }