Recent content by MaTHFRo

  1. M

    Translating Graphic back to Origin after Rotation

    I'm developing a game for the iPhone, and I have a situation where I have a graphic that the user can drag around the screen and there are some buttons the user can push to both rotate it and enlarge it. The graphic is located within a UIView, which is just a rectangular shape that fits tightly...
  2. M

    Positioning Shape Inside of Ellipse

    Thanks for the response Chiro. Yes, the ellipse and the blue shape both share the same center. The width and height of the ellipse is 75.5 and 54.5. The width and height of the rectangular area of the blue shape is 42.98 and 39.51 (the width and height of the entire blue shape are 60.5 and 39.5...
  3. M

    Positioning Shape Inside of Ellipse

    In a game I'm developing, I have an ellipse which contains a blue shape inside of it like follows: http://img6.imageshack.us/img6/9518/screenshot20120815at938.png In the picture, the curves of the blue shape have the exact same arc as the area of the ellipse that it mirrors. In this...
  4. M

    How to Stretch an Elipse Made of Bezier Paths

    Thanks. When you say x_centre_of_object, I'm guessing that would mean the original object? So it would be (x-a')*c. Also, just wondering could this work for more complicated shapes as long as they were comprised of bezis?
  5. M

    How to Stretch an Elipse Made of Bezier Paths

    Thanks for the response Chiro. So if I were to have a rectangle that was W = 300, H = 100, and I wanted to translate the first control point of the first curve, would it be something like this: X = 515.98 Y = 258.24 A = 150 B = 50 C = 150 / 515.98 D = 50 / 515.98 Also, my origin is...
  6. M

    How to Stretch an Elipse Made of Bezier Paths

    Hi all, I'm currently writing an iPhone application where I'm taking the following ellipse which I created in Adobe Illustrator: http://img29.imageshack.us/img29/6584/95436658.gif And drawing it in my code using the following: CGPathMoveToPoint(515.98, 258.24); CGPathAddCurveToPoint(515.98...
Back
Top