methods.distfun

0th

Percentile

Geometrical Operations for Distance Functions

Methods for objects of the class "distfun".

Keywords
methods, spatial
Usage
# S3 method for distfun
shift(X, …)

# S3 method for distfun rotate(X, …)

# S3 method for distfun scalardilate(X, …)

# S3 method for distfun affine(X, …)

# S3 method for distfun flipxy(X)

# S3 method for distfun reflect(X)

# S3 method for distfun rescale(X, s, unitname)

Arguments
X

Object of class "distfun" representing the distance function of a spatial object.

Arguments passed to the next method for the geometrical operation. See Details.

s, unitname

Arguments passed to the next method for rescale.

Details

These are methods for the generic functions shift, rotate, scalardilate, affine, flipxy and reflect which perform geometrical operations on spatial objects, and for the generic rescale which changes the unit of length.

The argument X should be an object of class "distfun" representing the distance function of a spatial object Y. Objects of class "distfun" are created by distfun.

The methods apply the specified geometrical transformation to the original object Y, producing a new object Z of the same type as Y. They then create a new distfun object representing the distance function of Z.

Value

Another object of class "distfun".

See Also

distfun, methods.funxy.

Aliases
  • methods.distfun
  • shift.distfun
  • rotate.distfun
  • scalardilate.distfun
  • affine.distfun
  • flipxy.distfun
  • reflect.distfun
  • rescale.distfun
Examples
# NOT RUN {
   (f <- distfun(letterR))
   plot(f)
   flipxy(f)
   shift(f, origin="midpoint")
   plot(rotate(f, angle=pi/2))

   (g <- distfun(lansing))
   rescale(g)
# }
Documentation reproduced from package spatstat, version 1.61-0, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.