Shears each geometry by degrees_x along the x dimension and degrees_y
along the y dimension, about the geometry's own centroid. The geometry type
of the output matches the geometry type of the input.
Examples
sq <- geoarrow::as_geoarrow_array(sf::st_sfc(
sf::st_polygon(list(rbind(c(0, 0), c(2, 0), c(2, 2), c(0, 2), c(0, 0))))
))
# shear along x only, leaving y untouched
geoarrow::as_geoarrow_vctr(ga_skew_xy(sq, 30, 0))
#> <geoarrow_vctr geoarrow.polygon{list}[1]>
#> [1] <POLYGON ((-0.5773503 0, 1.4226497 0, 2.5773503 2, 0.5773503 2, -0.5773>