Struct Rectangle
- Namespace
- NeoVeldrid
- Assembly
- NeoVeldrid.dll
public struct Rectangle : IEquatable<Rectangle>
- Implements
- Inherited Members
Constructors
Rectangle(Point, Point)
public Rectangle(Point topLeft, Point size)
Parameters
Rectangle(int, int, int, int)
public Rectangle(int x, int y, int width, int height)
Parameters
Fields
Height
public int Height
Field Value
Width
public int Width
Field Value
X
public int X
Field Value
Y
public int Y
Field Value
Properties
Bottom
public int Bottom { get; }
Property Value
Left
public int Left { get; }
Property Value
Position
public Vector2 Position { get; }
Property Value
Right
public int Right { get; }
Property Value
Size
public Vector2 Size { get; }
Property Value
Top
public int Top { get; }
Property Value
Methods
Contains(Point)
public bool Contains(Point p)
Parameters
pPoint
Returns
Contains(int, int)
public bool Contains(int x, int y)
Parameters
Returns
Equals(Rectangle)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Rectangle other)
Parameters
otherRectangleAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
operator ==(Rectangle, Rectangle)
public static bool operator ==(Rectangle left, Rectangle right)
Parameters
Returns
operator !=(Rectangle, Rectangle)
public static bool operator !=(Rectangle left, Rectangle right)