inside.object2d: Returns a logical vector for whether the 2D positions given...

Description Usage Arguments

Description

Returns a logical vector for whether the 2D positions given in 'x' are inside the object specified by 'object', 'center', 'angle' and 'par'.

Usage

1
2
inside.object2d(x, object = c("ellipse", "rect"), par = c(1, 1),
  center = c(0, 0), angle = 0, logical = FALSE)

Arguments

x

is a three column matrix representing the x- y- and z-coordinates. If x is a vector, it is considered to be one single 2D point.

object

is string representing the type of object to use. Currently implemented are "ellipsoid" and "cuboid" (may be abbreviated).

par

is a vector of three elements representing the semi axis lengths for ellipsoid and the x-width, y-depth and z-height of cuboid.

center

is a vector of three elements representing the centre position of the object.

angle

is the angle of the major axis of the ellipsoid in the x-y-plane, in the case that object=="ellipsoid".

logical

is TRUE if the output should be locigal instead of numeric.


arnejohannesholmin/AJ documentation built on May 27, 2019, 4:06 a.m.