Description Usage Arguments Value References Examples
Circumcenter
computes the center of a triangle
1 | Circumcenter(Tri, lines = F)
|
Tri |
Triangle object, previously created with function |
lines |
Boolean. When |
Vector which contains the xy-coordinates of the circumcenter of the triangle
http://mathworld.wolfram.com/Circumcenter.html
1 2 3 4 5 6 7 8 9 10 11 12 | P1 <- c(0,0)
P2 <- c(1,1)
P3 <- c(2,0)
Tri <- CreatePolygon(P1, P2, P3)
x_min <- -5
x_max <- 5
y_min <- -5
y_max <- 5
CoordinatePlane(x_min, x_max, y_min, y_max)
Draw(Tri, "transparent")
I <- Circumcenter(Tri, lines = TRUE)
Draw(I, "red")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.