To perform operations on geospatial types, you can use the geospatial UDFs or the instance methods defined for ST_Geometry. (For the best performance, if an instance method is available that performs the same functionality as a UDF, use the instance method.)