Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!uwm.edu!rutgers!dptg!att!chinet!mcdchg!ddsw1!corpane!disk!specter From: specter@disk.UUCP (Byron 'Max' Guernsey) Newsgroups: comp.lang.pascal Subject: Re: Rotation of triangle Keywords: psuedo rotation? Message-ID: <577@disk.UUCP> Date: 4 Oct 89 21:38:37 GMT References: <10079@xanth.cs.odu.edu> <10081@xanth.cs.odu.edu> Reply-To: specter@disk.UUCP (Byron 'Max' Guernsey) Distribution: na Organization: The Alaskan Organization for Amiga Domination Lines: 26 In article <10081@xanth.cs.odu.edu> wayne@cs.odu.edu (C Wayne Huling) writes: >> >> I am writting a program which needs to move a triangle along a grid. >>This triangle should turn, and what I need is a routine which will rotate >>a triangle of varing proportion 360 degrees. This is not a Homework problem I'm not sure this could be called true rotation, but I have written very slow programs that attempted to rotate cubes on axis by imagining the 4 points of the cube to be on two circles. Then, I rotated the points around the circle using trig ratios. It works quite nicely, but I don't know that it is the best way to rotate anything. At any rate, I'm sure if you wanted to use the same idea on a triangle, it would work. Anyone know of a better way to do it? The cube I made rotated fairly slow at incretements of about 5 degrees...but such would be expected with a slow 4 mghtz ibm (no offense to ibm users). I remember seeing a very awesome cube on an iris system running unix. The cube was similar to the famed rubics cube and you could use the mouse to rotate the levels in any direction and use the cube exactly like a rubics cube...I think it had a mode where the computer attempting to solve the cube after you messed it up. Has anyone else seen this program? -- Byron 'Maxwell' Guernsey | /// //\\ specter@disk.UUCP or | /// // \\ uunet!ukma!corpane!disk!specter | \\\/// //====\\ "Sometimes death is better..." - S. King| \\\/ // \\ m i g a