Blogs

Mark Miller

CodeRush Screenshot of the Week – Rotate 90 Degrees

     

You may have noticed this entry showing up in the Code menu and wondered “What does Rotate 90 Degrees do?”. This code provider is useful when you are working in a two-dimensional space, and you’ve written code to work in one dimension and you want to create similar code to work in the other dimension.

Here I’ve taken the first method, CalculateHorizontalPosition that works on the x-axis, copied it, and now I’m converting it into a functionally similar method that works on the y-axis:

Rotate90Degrees

So DeltaX becomes DeltaY, _HorizontalPosition becomes _VerticalPosition, Left becomes Top, StrongRight becomes StrongBottom (hmmm… maybe I should rename that), etc..

Seen something cool in CodeRush? Take a screenshot and send it to me (markm at the DevExpress domain). If we use your image we’ll send you one of these highly coveted CodeRush Nation t-shirts.

CodeRush Nation t-shirt

Published Oct 15 2010, 11:55 AM by Mark Miller (DevExpress)
Bookmark and Share

Comments

 

Joe Hendricks said:

Very cool!

October 15, 2010 9:30 PM

About Mark Miller (DevExpress)

Mark Miller is a C# MVP with strong expertise in decoupled design, plug-in architectures, and great UI. Mark is Chief Architect of the IDE Tools division at Developer Express, and is the visionary force behind productivity tools like CodeRush and Refactor!, as well as the DXCore extensibility layer for Visual Studio. Mark is a popular speaker at conferences around the world and has been writing software for over two decades.
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.