in_circle: Check if point lies within a circle

View source: R/in_circle_function.R

in_circleR Documentation

Check if point lies within a circle

Description

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

Usage

in_circle(Xcor, Ycor, Xctr, Yctr, radius)

Arguments

Xcor

X-coordinate of the point

Ycor

Y-coordinate of the point

Xctr

X-coordinate of the circle center

Yctr

Y-coordinate of the circle center

radius

...of the circle

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.