Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!sjm From: sjm@cs.purdue.EDU (Scott J Mark) Newsgroups: comp.graphics Subject: Point within cylinder problem Message-ID: <7967@medusa.cs.purdue.edu> Date: 14 Sep 89 15:15:47 GMT Reply-To: sjm@medusa.cs.purdue.edu (Scott J Mark) Organization: Department of Computer Science, Purdue University Lines: 16 It's formula time, again. Is there any cheap way of determining if a point in 3-space is within a cylinder? I have the endpoints of the central line, and the radius of the cylinder. Even more helpful would be something that would determine if a point is within a cylinder with a hemisphere at each end. This can be done by checking the point against a spere at each endpoint, but if there is a way to get this "free" I'd prefer it. In other words, I need to determine if a point is within a certain distance of a line segment. Scott Mark -- sjm@cs.purdue.edu