find_circle: Find the circle passing through three points

View source: R/pictplot.R

find_circleR Documentation

Find the circle passing through three points

Description

Given 3 points, P1(x1, y1), P2(x2, y2) and P3(x3, y3), find the circle that passes through the points. For details, see https://www.geeksforgeeks.org/equation-of-circle-when-three-points-on-the-circle-are-given/

Usage

find_circle(x1, y1, x2, y2, x3, y3)

Arguments

x1

x coordinate of P1

y1

y coordinate of P1

x2

x coordinate of P2

y2

y coordinate of P2

x3

x coordinate of P3

y3

y coordinate of P3

Value

a vector of 3 values, the center (x and y) and the radius of the circle

Examples

find_circle(0, 0, 2, 0, 0, 2)

tsuda16k/pictplot documentation built on March 1, 2023, 8:44 p.m.