FloatRect Structure

SFML.Net

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

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

The FloatRect type exposes the following members.

Constructors
  NameDescription
Public methodFloatRect(Vector2f, Vector2f)
Construct the rectangle from position and size
Public methodFloatRect(Single, Single, Single, Single)
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(FloatRect)
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(FloatRect)
Check intersection between two rectangles
Public methodIntersects(FloatRect, FloatRect)
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(FloatRect to IntRect)
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