From: Junghyun on 10 Jul 2010 22:57 Hi, Can I ask another question? If a vector can be obtained from the 2 points, how can I define a circle which lies on a plane perpendicular to the given vector with a circle's center point c and the radius r. Thank you. Junghyun
From: Roger Stafford on 11 Jul 2010 02:35 "Junghyun " <wkhdntnkpst(a)yahoo.com> wrote in message <i1bbu0$q4v$1(a)fred.mathworks.com>... > Hi, > Can I ask another question? > > If a vector can be obtained from the 2 points, how can I define a circle which lies on a plane perpendicular to the given vector with a circle's center point c and the radius r. > > Thank you. > Junghyun - - - - - - - - - - You want an equation of a circle with center at c, radius r, and lying in a plane orthogonal to the line between points a and b? To do this parametrically as in my first posting May 15, I need a way to choose some starting point on the circle. For this purpose I'll assume that point c does not lie on the line through a and b. Then do: u = cross(c-a,b-a); u = u/norm(u); v = cross(b-a,u); v = v/norm(v); p = c + r*(cos(t)*u + sin(t)*v); As parameter t varies from 0 to 2*pi, p traces a circle of radius r about the center c. If c lies on the line but the line does not go through the origin, use u = cross(c,b-a); in the first line of code with the other lines the same. If points a, b, c, and the origin are all colinear, then choose whichever coordinate axis, call it d, is not parallel to b-a and do u = cross(d,b-a); for that first line of code. However you do it, choose some vector d which is not parallel to b-a so that u = cross(d,b-a) is nonzero for that first line of code. Roger Stafford
From: us on 11 Jul 2010 05:42 "Junghyun " <wkhdntnkpst(a)yahoo.com> wrote in message <i1bbu0$q4v$1(a)fred.mathworks.com>... > Hi, > Can I ask another question? > > If a vector can be obtained from the 2 points, how can I define a circle which lies on a plane perpendicular to the given vector with a circle's center point c and the radius r. > > > Thank you. > Junghyun > this NG deals with ML language problems... read a book or your notes... us
From: Junghyun on 11 Jul 2010 19:31 Roger, Thank you so much!! It's so helpful. Junghyun
|
Pages: 1 Prev: Plane equation with a radius and a center point Next: Simple fitting problem |