atan2

0th

Percentile

Two argument arc-tangent

For Raster* objects x and y, atan2(y, x) returns the angle in radians for the tangent y/x, handling the case when x is zero. See Trig

See Math-methods for other trigonometric and mathematical functions that can be used with Raster* objects.

Keywords
methods, math
Usage
atan2(y, x)
Arguments
y

Raster* object

x

Raster* object

See Also

Math-methods

Aliases
  • atan2,Raster,Raster-method
  • atan2
Examples
# NOT RUN {
r1 <- r2 <- raster(nrow=10, ncol=10)
r1[] <- (runif(ncell(r1))-0.5) * 10
r2[] <- (runif(ncell(r1))-0.5) * 10
atan2(r1, r2)
# }
Documentation reproduced from package raster, version 2.9-5, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.