Learn R Programming

PlaneGeometry (version 1.6.0)

EllipseFromThreeBoundaryPoints: Smallest ellipse that passes through three boundary points

Description

Returns the smallest area ellipse which passes through three given boundary points.

Usage

EllipseFromThreeBoundaryPoints(P1, P2, P3)

Value

An Ellipse object.

Arguments

P1, P2, P3

three non-collinear points

Examples

Run this code
P1 <- c(-1,0); P2 <- c(0, 2); P3 <- c(3,0)
ell <- EllipseFromThreeBoundaryPoints(P1, P2, P3)
ell$includes(P1); ell$includes(P2); ell$includes(P3)

Run the code above in your browser using DataLab