WPF: Getting new coordinates after a Rotation

前端 未结 5 1259
一向
一向 2020-12-09 04:57

With reference to this programming game I am currently building.

alt text http://img12.imageshack.us/img12/2089/shapetransformationf.jpg

To translat

5条回答
  •  误落风尘
    2020-12-09 05:40

    I use this method:

    Point newPoint = rotateTransform.Transform(new Point(oldX, oldY));
    

    where rotateTransform is the instance on which I work and set Angle...etc.

提交回复
热议问题