Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to draw an arc between two points given centre and radius
Date: Mon, 2 Apr 2012 22:55:15 +0000 (UTC)
Organization: Achates Power, LLC
Lines: 8
Message-ID: <jldaoj$6fu$1@newscl01ah.mathworks.com>
References: <hotir8$8a8$1@fred.mathworks.com> <hotvtt$gdr$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-06-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1333407315 6654 172.30.248.38 (2 Apr 2012 22:55:15 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 2 Apr 2012 22:55:15 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1824835
Xref: news.mathworks.com comp.soft-sys.matlab:763089

"Roger Stafford" wrote in message <hotvtt$gdr$1@fred.mathworks.com>...
>  v  = v1*cos(a)+((norm(v1)/norm(v3))*v3)*sin(a); % Arc, center at (0,0)

Excellent, elegant routine. Thanks for your effort.

But, the calculation fails if all three points are on the same line, as when drawing a semicircle. The calculation above results in a NaN for each element of v1. Any suggestions?

-Brian Callahan