in_cone: Check if point lies within a cone

View source: R/in_cone_function.R

in_coneR Documentation

Check if point lies within a cone

Description

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

Usage

in_cone(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 ground plain of the cone

height

...of the cone

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.