Apply shear transformation to a spatial object.
Currently only works for 2D transforms. This implementation
applies a shear along one axis by adding the value of the other
axis after a multiplicative factor fx
or fy
is applied.
Usage
# S4 method for class 'spatLocsObj'
shear(x, fx = 0, fy = 0, x0, y0, ...)
# S4 method for class 'SpatVector'
shear(x, fx = 0, fy = 0, x0, y0, ...)
# S4 method for class 'giottoPoints'
shear(x, fx = 0, fy = 0, x0, y0, ...)
# S4 method for class 'giottoPolygon'
shear(x, fx = 0, fy = 0, x0, y0, ...)
# S4 method for class 'giottoLargeImage'
shear(x, fx = 0, fy = 0, x0, y0, ...)
# S4 method for class 'giottoAffineImage'
shear(x, fx = 0, fy = 0, x0, y0, ...)
# S4 method for class 'affine2d'
shear(x, fx = 0, fy = 0, x0, y0, ...)