symmetric_distance function

X symmetric distance of a point

X symmetric distance of a point

calculates the Distance from the positive anchor and the negative anchor to the point and returns the smaller one. That means, if y is positive the distance to the positive anchor will be return, if it is negative, the negative anchor distance will be calculated

symmetric_distance(x, y, anchor)

Arguments

  • x, y: numerical, in this case phi and delta but in general the input coordinates
  • anchor: vector (x,y) the anchor for the calculation of the distance

Returns

the smaller distance of (x,y) to eather the positive or negative anchor

Examples

symmetric_distance(0.5,0.5,c(0,0))
  • Maintainer: Ursula Neumann
  • License: GPL (>= 2)
  • Last published: 2018-05-08

Useful links