Defines a rectangle.
Declaration Syntax
C# |
[SerializableAttribute] public struct Rectangle : IEquatable<Rectangle>
Members
All Members | Constructors | Methods | Properties | Fields | |
|
|
|
Icon | Member | Description |
---|---|---|
Rectangle(Int32, Int32, Int32, Int32) |
Creates a new Rectangle.
|
|
Bottom |
Get the bottom-most Y coordinate (Top + Height).
|
|
Center |
Get the center of the rectangle.
|
|
Contains(Point) |
Test if the supplied point is inside this rectangle.
|
|
Contains(Point%, Boolean%) |
Test if the supplied point are inside this rectangle.
|
|
Contains(Int32, Int32) |
Test if the supplied coordinates are inside this rectangle.
|
|
Contains(Rectangle) |
Test if the supplioed rectangle is inside of this rectangle.
|
|
Contains(Rectangle%, Boolean%) |
Test if the supplioed rectangle is inside of this rectangle.
|
|
Empty |
Get the empty rectangle, where the top left corner is defined at the origin
and the rectangle has no area.
|
|
Equality(Rectangle, Rectangle) |
Test equality between two rectangles.
|
|
Equals(Rectangle) |
Tests equality between this rectangle and another.
|
|
Equals(Object) |
Test equality between this rectangle and the supplied object.
(Overrides ValueType.Equals(Object).) |
|
GetHashCode()()()() |
Get the hashcode of this rectangle.
(Overrides ValueType.GetHashCode()()()().) |
|
GetType()()()() |
Gets the Type of the current instance. (Inherited from Object.) |
|
Height |
Height of the rectangle
|
|
Inequality(Rectangle, Rectangle) |
Test inequality between two rectangles.
|
|
Intersect(Rectangle, Rectangle) |
Finds the rectangle that represents the overlap (intersection) of
two rectangles. May return empty
|
|
Intersect(Rectangle%, Rectangle%, Rectangle%) |
Finds the rectangle that represents the overlap (intersection) of
two rectangles. May return empty
|
|
Intersects(Rectangle) |
Tests if a rectangle intersects with this one.
|
|
Intersects(Rectangle%, Boolean%) |
Tests if a rectangle intersects with this one.
|
|
IsEmpty |
Get if this rectangle is empty (zero area, origin for top left corner) or not.
|
|
Left |
Get the left-most X coordinate.
|
|
Right |
Get the right-most X coordinate (Left + Width).
|
|
Scale(Int32, Int32) |
Scale the rectangle by the supplied amount.
|
|
Top |
Get the top-most Y coordinate.
|
|
TopLeftLocation |
Get the top-left hand corner (X,Y values).
|
|
ToString()()()() |
Get the string representation of this rectangle.
(Overrides ValueType.ToString()()()().) |
|
Translate(Point) |
Translates this rectangle's top left X,Y coordinates by the supplied amount.
|
|
Translate(Int32, Int32) |
Translates this rectangle's top left X,Y coordinates by the supplied amount.
|
|
Union(Rectangle, Rectangle) |
Create the union between two rectangles.
|
|
Union(Rectangle%, Rectangle%, Rectangle%) |
Create the union between two rectangles.
|
|
Width |
Width of the rectangle
|
|
X |
Top-left X coordinate of the rectangle
|
|
Y |
Top-left Y coordinate of the rectangle
|
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)