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

View source: R/pictplot.R

is_inside_ellipseR Documentation

Check if a point is inside or outside an ellipse

Description

For details, see https://www.geeksforgeeks.org/check-if-a-point-is-inside-outside-or-on-the-ellipse/

Usage

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

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/pictplot documentation built on March 1, 2023, 8:44 p.m.