Extra functions for CGPoint.