IntRect Structure

SFML.Net

IntRect Structure
IntRect is an utility class for manipulating 2D rectangles with integer coordinates

Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public struct IntRect : IEquatable<IntRect>
Public Structure IntRect
	Implements IEquatable(Of IntRect)
public value class IntRect : IEquatable<IntRect>
[<SealedAttribute>]
type IntRect =  
    struct
        interface IEquatable<IntRect>
    end

The IntRect type exposes the following members.

Constructors
  NameDescription
Public methodIntRect(Vector2i, Vector2i)
Construct the rectangle from position and size
Public methodIntRect(Int32, Int32, Int32, Int32)
Construct the rectangle from its coordinates
Top
Methods
  NameDescription
Public methodContains
Check if a point is inside the rectangle's area
Public methodEquals(Object)
Compare rectangle and object and checks if they are equal
(Overrides ValueTypeEquals(Object).)
Public methodEquals(IntRect)
Compare two rectangles and checks if they are equal
Public methodGetHashCode
Provide a integer describing the object
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIntersects(IntRect)
Check intersection between two rectangles
Public methodIntersects(IntRect, IntRect)
Check intersection between two rectangles
Public methodToString
Provide a string describing the object
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Operator == overload ; check rect equality
Public operatorStatic member(IntRect to FloatRect)
Explicit casting to another rectangle type
Public operatorStatic memberInequality
Operator != overload ; check rect inequality
Top
Fields
  NameDescription
Public fieldHeight
Height of the rectangle
Public fieldLeft
Left coordinate of the rectangle
Public fieldTop
Top coordinate of the rectangle
Public fieldWidth
Width of the rectangle
Top
See Also