Skip to contents

Get a circle from 3 points

Usage

circle_from_3_points(p1, p2 = NULL, p3 = NULL, ...)

Arguments

p1

an ob_point of length 1 or length 3

p2

an ob_point of length 1 or NULL

p3

an ob_point of length 1 or NULL

Value

ob_point

Examples

p1 <- ob_point(1,1)
p2 <- ob_point(2,4)
p3 <- ob_point(5,3)
circle_from_3_points(p1,p2, p3)
#> <ggdiagram::ob_circle>
#> @ center: <ggdiagram::ob_point>
#>  @ x: num 3
#>  @ y: num 2
#> @ radius: num 2.24
#> Other props: label, alpha, color, fill, linewidth, linetype,
#>              n, area, bounding_box, circumference, diameter,
#>              length, polygon, style, tibble, geom, arc, angle_at,
#>              normal_at, tangent_at, place, point_at, aesthetics