/// <summary>Initializes a new rectangle from a location and a size</summary> /// <param name="location">Location of the rectangle's upper left corner</param> /// <param name="size">Size of the area covered by the rectangle</param> public UniRectangle(UniVector location, UniVector size) { this.Location = location; this.Size = size; }
/// <summary>Checks whether another instance is equal to this instance</summary> /// <param name="other">Other instance to compare to this instance</param> /// <returns>True if the other instance is equal to this instance</returns> public bool Equals(UniVector other) { // For a struct, 'other' cannot be null return((this.X == other.X) && (this.Y == other.Y)); }