123456789101112131415161718192021222324252627282930313233 |
- using System;
- namespace CommonUI.Gemo
- {
- public class Size2D
- {
- public float width;
-
- public float height;
- public Size2D() {}
- public Size2D(float w, float h) {
- width = w;
- height = h;
- }
- public void swap() {
- float temp = width;
- width = height;
- height = temp;
- }
- public bool Equals(Size2D r) {
- if (r != null) {
- return ((width == r.width) &&
- (height == r.height));
- }
- return false;
- }
- }
- }
|