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$>
References: <hotir8$8a8$> <hotvtt$gdr$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1333407315 6654 (2 Apr 2012 22:55:15 GMT)
NNTP-Posting-Date: Mon, 2 Apr 2012 22:55:15 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1824835
Xref: comp.soft-sys.matlab:763089

"Roger Stafford" wrote in message <hotvtt$gdr$>...
>  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