Click here to Skip to main content
15,891,981 members
Articles / Programming Languages / C#

Extension methods for finding centers of a rectangle

Rate me:
Please Sign up or sign in to vote.
5.00/5 (4 votes)
13 Jun 2012CPOL 17.1K   98  
It's very easy to work out the center of a rectangle, but it's messy as inline code. Hence these simple extension methods to provide the five centers.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO
Wales Wales
Born at an early age, he grew older. At the same time, his hair grew longer, and was tied up behind his head.
Has problems spelling the word "the".
Invented the portable cat-flap.
Currently, has not died yet. Or has he?

Comments and Discussions