DRect.rotate - bad results???
Moderators: SDS, support, admin
DRect.rotate - bad results???
I have the following code:
I end up with a box as expected:
And I get:
Is this working as expected and I am misunderstanding the result?
Code: Select all
Dim box As New DRect
box.left = 5
box.right = 10
box.top = 6
box.bottom = 5
I execute:bottomRight.x: 10
bottomRight.y: 5
topLeft.x: 5
topLeft.y: 6
width: 5
height: 1
Code: Select all
box.Rotate(90)
I expect the box to have rotated either 90 degrees using the center of the box as the rotation point or 90 degrees into a different quadrant of an x,y plot.bottomRight.x = 10
bottomRight.y = -10
topLeft.x = -10
topLeft.y = 10
width: 20
height: 20
Is this working as expected and I am misunderstanding the result?
Re: DRect.rotate - bad results???
Hello!
There is a problem with recalculating DRect coordinates after rotation. We will consider this problem. Thank you for your post!
Mikhail.
There is a problem with recalculating DRect coordinates after rotation. We will consider this problem. Thank you for your post!
Mikhail.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support