remove.close.ellipse {dga} R Documentation

## A Helper Function to Tell Which Points are Near the Boundary of the Ellipse

### Description

A helper function.

### Usage

remove.close.ellipse(ps, x, y, a, b, alpha)


### Arguments

 ps an n x 2 matrix of potential points. x the x coordinate of the center of the ellipse. y the y coordinate of the center of the ellipse. a the x-radius of the ellipse. b the y-radius of the ellipse. alpha the angle of rotation of the ellipse.

### Value

 inds a vector of length nrow(ps) that tells whether each row of ps is near the border of the ellipse defined by x,y,a,b, and alpha.

### Author(s)

Kristian Lum kl@hrdag.org

### Examples



## The function is currently defined as
ps <- cbind(runif(100), runif(100))
inds <- dga:::remove.close.ellipse(ps, .5, .5, .1, .3, 1)


[Package dga version 2.0.1 Index]