Added some geometry UDFs