Program: MKCIRCUMCIRCLE
mkcircumcircle........compute circumcircle paramters of 3D triangle
call: [cc,r]=mkcircumcircle(a,b,c);
a,b,c: (number triples)
cartesian coordinates of triangle corners A, B, C
a(1) is x coordinate of point A
a(2) is y coordinate of point A
a(3) is z coordinate of point A
b, c analoguous.
result: cc: (number triple)
cartesian coordinates of the circumcenter of triangle ABC
c(1) is x coordinate
c(2) is y coordinate
c(3) is z coordinate
r: (number)
radius of the circumcircle
The circumcircle is the circle that is defined by the three corners of
the triangle. Its center can be constructed as the point in which the
perpendicular bisectors of all three sides of triangle ABC intersect.
In this routine, only the bisectors of sides AB and BC are intersected.
The radius is computed as distance between points CC and A.
Martin Knapmeyer, 03.12.2004
Read M-File Source Code
eof.