Over the past few weeks, three of four major stock indexes - the Dow Jones Industrial Average (DJI), Nasdaq Composite (IXIC), ...
gives formula to show if a point is inside a cylinder. It is based on finding a rotation that maps the cylinder axis onto a cartesian axis, and then calculate the distance from the axis.