function cloneVectorOrUndefined(vec) {
        if (!vec) {
            return undefined;
        }
        return { x: vec.x, y: vec.y };
    }
/**
     * Copy point or vector
     * @param vec vector/point to copy
     */
Copy point or vector
@param vec vector/point to copy
Copy point or vector @param vec vector / point to copy
function cloneVectorOrUndefined(vec) {
        if (!vec) {
            return undefined;
        }
        return { x: vec.x, y: vec.y };
    }
function cloneVectorOrUndefined ( vec ) { if ( ! vec ) { return undefined ; } return { x : vec . x , y : vec . y } ; }
Copy point or vector
 @param vec vector/point to copy
Copy point or vector @param vec vector / point to copy