Hello wpfhelp 
Originally Posted by
wpfhelp
Hi,
i have a issue with change the appearance width of rectangle, that is if the rectangle rotation is 0 degree change its original width, else if the rectangle is rotated in 90 degree then change its original height,
Rectangle height=100 width=50 and its rotation angle is 90 degree around center point, now i need to change the appearance width =appearance width *2, so how can calculate this with angle
please help me
Thanks in advance
As I understand it, the rules are: there are two possible angles of rotation:
and
; and then:
If the angle of rotation is
, then
change the original width
else
change the original height.
In the problem you are given, the rotation angle is
, so we must change the original height, multiplying it by
. The original height was
and the width
; so after the change, the dimensions of the rectangle are now
.
Grandad