You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rectangle is a struct (value-type), and therefore should be immutable to avoid accidentally modifying temporary boxed values.
Convenience functions such as Rectangle.ChangeCenter could be provided that take a center point and return a new rectangle modified to have that center, to allow for convenient modification.
The text was updated successfully, but these errors were encountered:
…eate new rectangles. This fixes issue #40. Also changed centering code to fix issue #41. Created Created BoundedRectangle, and edited Viewport to use it. Changed property exposure to be references to the appropriate value-types.
Rectangle is a struct (value-type), and therefore should be immutable to avoid accidentally modifying temporary boxed values.
Convenience functions such as
Rectangle.ChangeCenter
could be provided that take a center point and return a new rectangle modified to have that center, to allow for convenient modification.The text was updated successfully, but these errors were encountered: