Click or drag to resize

RectangleF Structure

Represents a rectangle specifying a position and size which uses float values.

Namespace:  Syroot.Maths
Assembly:  Syroot.Maths (in Syroot.Maths.dll) Version: 1.5.0-alpha1
Syntax
public struct RectangleF : IEquatable<RectangleF>, 
	IEquatableByRef<RectangleF>, INearlyEquatable<RectangleF>, INearlyEquatableByRef<RectangleF>

The RectangleF type exposes the following members.

Constructors
  NameDescription
Public methodRectangleF(Vector2F, Vector2F)
Initializes a new instance of the RectangleF structure with the given values for the position and size components.
Public methodRectangleF(Single, Single, Single, Single)
Initializes a new instance of the RectangleF structure with the given values for the position and size components.
Top
Properties
  NameDescription
Public propertyPosition
Gets or sets the positional Vector2F of this rectangle, representing the X and Y members.
Public propertySize
Gets or sets the sizing Vector2F of this rectangle, representing the Width and Height members.
Public propertyX2
Gets or sets the end coordinate on the X axis.
Public propertyY2
Gets or sets the end coordinate on the Y axis.
Top
Methods
  NameDescription
Public methodEquals(Object)
Gets a value indicating whether the components of this RectangleF are the same as the components of the second specified RectangleF.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(RectangleF)
Indicates whether the current RectangleF is equal to another RectangleF.
Public methodEquals(RectangleF)
Indicates whether the current RectangleF is equal to another RectangleF. Structures are passed by reference to avoid stack structure copying.
Public methodGetHashCode
Gets a hash code as an indication for object equality.
(Overrides ValueTypeGetHashCode.)
Public methodNearlyEquals(RectangleF)
Indicates whether the current RectangleF is nearly equal to another RectangleF.
Public methodNearlyEquals(RectangleF)
Indicates whether the current RectangleF is nearly equal to another RectangleF. Structures are passed by reference to avoid stack structure copying.
Public methodToString
Gets a string describing the components of this RectangleF.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Gets a value indicating whether the components of the first specified RectangleF are the same as the components of the second specified RectangleF.
Public operatorStatic member(Rectangle to RectangleF)
Implicit conversion from Rectangle.
Public operatorStatic memberInequality
Gets a value indicating whether the components of the first specified RectangleF are not the same as the components of the second specified RectangleF.
Top
Fields
  NameDescription
Public fieldHeight
The float height of the rectangle.
Public fieldStatic memberOne
A RectangleF at position 0f, 0f and a width and height of 1f.
Public fieldStatic memberSizeInBytes
Gets the size of this structure.
Public fieldStatic memberValueCount
Gets the amount of value types required to represent this structure.
Public fieldWidth
The float width of the rectangle.
Public fieldX
The X float component.
Public fieldY
The Y float component.
Public fieldStatic memberZero
A RectangleF at position 0f, 0f and a width and height of 0f.
Top
See Also