Origin problems - rotating shapes

frances_farmer
Unregistered
 
Post: #1
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.
Quote this message in a reply
Sage
Posts: 1,403
Joined: 2005.07
Post: #2
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?

Sir, e^iπ + 1 = 0, hence God exists; reply!
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Vector shapes Miglu 16 8,621 Sep 22, 2010 07:52 AM
Last Post: Miglu
  Rotating a point in 3D Joseph Duchesne 1 2,567 Dec 19, 2006 12:43 PM
Last Post: unknown
  Rendering 2D Shadows for Convex Shapes Nick 16 9,725 Nov 28, 2006 11:50 AM
Last Post: memon
  rotating objects ferum 11 3,984 Dec 19, 2005 02:28 PM
Last Post: ferum
  rotating... MACnus 4 3,706 Mar 25, 2005 07:46 PM
Last Post: phydeaux