Learn R Programming

geophys (version 1.2-1)

NinePointCircle: Nine Point Circle

Description

Nine Point cirlce of a triangle

Usage

NinePointCircle(P1, P2 = c(0, 1), P3 = c(1, 0), add = FALSE, SHOW = TRUE)

Arguments

P1
vector, Point 1
P2
vector, Point 1
P3
vector, Point 1
add
add to existing plot
SHOW
create a new plot and add

Value

  • list of essential points:
  • A2-vector, vertex point 1
  • B2-vector, vertex point 2
  • C2-vector, vertex point 3
  • D2-vector, mid-point opposite A
  • E2-vector, mid-point opposite B
  • F2-vector, mid-point opposite C
  • G2-vector, foot altitude point opposite A
  • H2-vector, foot altitude point opposite B
  • I2-vector, foot altitude point opposite C
  • J2-vector, mid point from S-A
  • K2-vector, mid point from S-B
  • L2-vector, mid point from S-C
  • S2-vector, Intersection point of altitudes
  • CEN2-vector, center of nine point circle
  • Rradius of nine point circle

Details

circle passes through nine points that can be calculated for any triangle. Also known as Feuerbach's circle, Euler's circle, Terquem's circle, the six-point circle, the twelve-point circle, the n-point circle, the medioscribed circle, the mid circle, the circum-midcircle.

References

http://en.wikipedia.org/wiki/Nine-point_circle

See Also

TriangleInfo, TriangleCenter

Examples

Run this code
P1 = 10*runif(2)
      P2 =  10*runif(2)
      P3 =  10*runif(2)

      TRI =  NinePointCircle(P1, P2, P3, add=TRUE, SHOW=TRUE)

Run the code above in your browser using DataLab