in_cylinder: Check if point lies within a cylinder

View source: R/in_cylinder_function.R

in_cylinderR Documentation

Check if point lies within a cylinder

Description

Function that checks for each X-Y-coordinate pair, whether the point lies in a cylinder of a given center, radius and height. Works with single numbers or matrices of X- and Y-coordinates as input.

Usage

in_cylinder(Xcor, Ycor, Zcor, Xctr, Yctr, Zbase, radius, height)

Arguments

Xcor

X-coordinate of the point

Ycor

Y-coordinate of the point

Zcor

Z-coordinate of the point

Xctr

X-coordinate of the center

Yctr

Y-coordinate of the center

Zbase

Z-coordinate of the lower end

radius

...of the cylinder

height

...of the cylinder

Value

boolean or matrix of booleans

Author(s)

Nikolai Knapp

Examples

in progress

niknap/slidaRtools documentation built on Oct. 16, 2024, 3:53 p.m.