added flip functions to point class