Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.soft-sys.math.mathematica > #16945
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!newspump.sol.net!post2.nntp.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail |
|---|---|
| From | Ray Koopman <koopman@sfu.ca> |
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Cirlce in 3D? |
| Date | Tue, 13 May 2014 02:27:33 +0000 (UTC) |
| Sender | steve@smc.vnet.net |
| Approved | Steven M. Christensen <steve@smc.vnet.net>, Moderator |
| Message-ID | <lkrvul$30$1@smc.vnet.net> (permalink) |
| Lines | 19 |
| Organization | Time-Warner Telecom |
| NNTP-Posting-Date | 13 May 2014 02:33:55 GMT |
| NNTP-Posting-Host | 18471be1.news.twtelecom.net |
| X-Trace | DXC=n4m_[fV^F@afMDbMQQNgfbC_A=>8kQj6m;[h;PUXBgbd\BjXfi;a<@iEFiONJ7[GofV78D?e`1iMe |
| X-Complaints-To | abuse@twtelecom.net |
| Xref | csiph.com comp.soft-sys.math.mathematica:16945 |
Show key headers only | View raw
c33 returns the center of a circle thru 3 points in 3 dimensions.
c33[{p1_,p2_,p3_}] := With[{q1 = p1-p3, q2 = p2-p3, q3 = p1-p2},
p3 + ((q2.q2)*(q3.q1)*q1 - (q1.q1)*(q3.q2)*q2)/(2 #.# & @ Cross[q1,q2])]
c33 is a closed-form version of c3n, which returns
the center of a circle thru 3 points in n dimensions.
c3n[{p1_,p2_,p3_}] := Block[{q1 = p1-p3, q2 = p2-p3, c,w1,w2},
c = w1*q1 + w2*q2; p3 + c /. Flatten@Solve[
{c.c == #.#&[q1-c], c.c == #.#&[q2-c]},{w1,w2}]]
----- Ste[hen Gray <stevebg@roadrunner.com> wrote:
> I'm looking for a neat formula to find the center of a circle in 3D
> through 3 points. I also need a good way to display it, preferably
> thickened so I can show several and see whether they are linked, etc. To
> my surprise I did not find anything on the Wolfram sites about these
> problems. (I have Mathematica 7, if that matters.)
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar
Re: Cirlce in 3D? Ray Koopman <koopman@sfu.ca> - 2014-05-13 02:27 +0000
csiph-web