the problem seem to be plotting the square. Holes are left by the newX,newY points.And some points are used twice. Anyideas anyone? I do use radian instead of angle now too.
newX = ((x-pX)*cos(radians ) - (y-pY)*sin(radians )) + pX;
newY = ((x-pX)*sin(radians ) + (y-pY)*cos(radians )) + pY;
User Profile
Collapse
Profile Sidebar
Collapse
adam johnson
Last Activity: Apr 1 '12, 06:05 PM
Joined: Dec 30 '11
Location:
-
thankyou. I can already do the easy rotates as i said earlier. I was thinking more along te lines of of a 0-360 degree rotate. Tried a few ways and although i do get a rotation "of sorts" its not good.
I was thinking along the lines of plotting an 8x8 square at a given angle and then filling the area in with my 8x8 array. I think i must be getting some weird rounding problems ans stuff. Just about given up now. Heres what ive got...Leave a comment:
-
i would like to rotate this 8x8 character array around its center point. so it look like the character is turning round.Leave a comment:
-
rotate an 8byte array
Hi guys/Gals.
I want to rotate an 8 byte array, to create a spinning effect, i.e.
char_buff[0] = 0x81;
char_buff[1] = 0x42;
char_buff[2] = 0x24;
char_buff[3] = 0x18;
char_buff[4] = 0x18;
char_buff[5] = 0x24;
char_buff[6] = 0x42;
char_buff[7] = 0x81;
this makes up a "character" , any ideas as how I can rotate it. not just 90 degrees, 180, 270. that bits...
No activity results to display
Show More
Leave a comment: