is_inside_ellipse: Check if a point is inside or outside an ellipse

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Check if a point is inside or outside an ellipse

Usage

1
is_inside_ellipse(x, y, h, k, a, b)

Arguments

x

x coordinate of the point

y

y coordinate of the point

h

x coordinate of the ellipse center

k

y coordinate of the ellipse center

a

semi-major axis x

b

semi-major axis y

Value

mean squared error

Examples

1
2
is_inside_ellipse(x = 0, y = 0, h = 0, k = 0, a = 4, b = 2) #TRUE
is_inside_ellipse(x = 5, y = 0, h = 0, k = 0, a = 4, b = 2) #FALSE

tsuda16k/noesis documentation built on Nov. 25, 2020, 10:16 a.m.