Origin problems - rotating shapes
Really not grasping something here.
Say I have a square with the vertex(0,0) at one corner and I can resize the shape by dragging the corner opposite, in and out. (achieved by increasing or decreasing the width and height). When resizing the shape, the vertex at (0,0) does not move, but all other vertices do.
When I rotate this square, and then resize the shape it doesnt resize by keeping the vertex in the opposite corner fixed, but instead the vertex at (0,0) stays fixed as before. This means the square doesn't shrink to the correct corner when you drag it inwards, but always shrinks to the vertex at (0,0).
I can't figure out how to change this.
Say I have a square with the vertex(0,0) at one corner and I can resize the shape by dragging the corner opposite, in and out. (achieved by increasing or decreasing the width and height). When resizing the shape, the vertex at (0,0) does not move, but all other vertices do.
When I rotate this square, and then resize the shape it doesnt resize by keeping the vertex in the opposite corner fixed, but instead the vertex at (0,0) stays fixed as before. This means the square doesn't shrink to the correct corner when you drag it inwards, but always shrinks to the vertex at (0,0).
I can't figure out how to change this.
just so I dont say something silly and not related to your problem,
are you calculation the corners mathematically and plotting them,
are you using NSBezierPath with NSAffineTranform,
are you using OpenGL,
or something else?
are you calculation the corners mathematically and plotting them,
are you using NSBezierPath with NSAffineTranform,
are you using OpenGL,
or something else?
Sir, e^iπ + 1 = 0, hence God exists; reply!
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Vector shapes | Miglu | 16 | 7,470 |
Sep 22, 2010 07:52 AM Last Post: Miglu |
|
| Rotating a point in 3D | Joseph Duchesne | 1 | 2,243 |
Dec 19, 2006 12:43 PM Last Post: unknown |
|
| Rendering 2D Shadows for Convex Shapes | Nick | 16 | 8,726 |
Nov 28, 2006 11:50 AM Last Post: memon |
|
| rotating objects | ferum | 11 | 3,542 |
Dec 19, 2005 02:28 PM Last Post: ferum |
|
| rotating... | MACnus | 4 | 3,390 |
Mar 25, 2005 07:46 PM Last Post: phydeaux |
|

