View Full Version : How can I calculate certain points on the surface of cylinder after I rotate it?

09-07-2001, 11:15 AM
I want to get the positions of two end points( these two end points are fixed) on the surface of the cylinder after I rotate it around itself( the rotate point is the center of the cylinder) in any compination of x y z direction , how can do it? Please help me!

09-07-2001, 12:23 PM
This is rather simple: if v is vector containing coords of the point before transformation and M- transformation matrix then coordinates of v after transformation are M*v.