Click or drag to resize
RectangleF Class
Rectangle with floating point position and extent.
Inheritance Hierarchy
SystemObject
  Slash.Math.Geometry.RectanglesRectangleF

Namespace: Slash.Math.Geometry.Rectangles
Assembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntax
public class RectangleF : IEquatable<RectangleF>

The RectangleF type exposes the following members.

Constructors
  NameDescription
Public methodRectangleF
Constructs a new rectangle without position or size.
Public methodRectangleF(Vector2F, Vector2F)
Constructs a new rectangle with the specified position and size.
Public methodRectangleF(Single, Single, Vector2F)
Constructs a new rectangle with the specified position and size.
Public methodRectangleF(Vector2F, Single, Single)
Constructs a new rectangle with the specified position and size.
Public methodRectangleF(Single, Single, Single, Single)
Constructs a new rectangle with the specified position and size.
Top
Properties
  NameDescription
Public propertyArea
Gets the area of this rectangle, the product of its width and height.
Public propertyBottom
Gets the y-component of the bottom side of this rectangle.
Public propertyBottomLeft
Gets the position of the bottom left corner of this rectangle.
Public propertyBottomRight
Gets the position of the bottom right corner of this rectangle.
Public propertyCenter
Gets the position of the center of this rectangle.
Public propertyHeight
Gets or sets the height of this rectangle.
Public propertyLeft
Gets the x-component of the left side of this rectangle.
Public propertyPosition
Gets the position of this rectangle.
Public propertyRight
Gets the x-component of the right side of this rectangle.
Public propertySize
Gets or sets the size of this rectangle, its width and height.
Public propertyTop
Gets the y-component of the top side of this rectangle.
Public propertyTopLeft
Gets the position of the top left corner of this rectangle.
Public propertyTopRight
Gets the position of the top right corner of this rectangle.
Public propertyWidth
Gets or sets the width of this rectangle.
Public propertyX
Gets or sets the x-component of the position of this rectangle.
Public propertyXMax
Maximum x-value of this rectangle.
Public propertyXMin
Minimum x-value of this rectangle.
Public propertyY
Gets or sets the y-component of the position of this rectangle.
Public propertyYMax
Maximum y-value of this rectangle.
Public propertyYMin
Minimum x-value of this rectangle.
Top
Methods
  NameDescription
Public methodContains(RectangleF)
Checks whether this rectangle entirely encompasses the passed other one.
Public methodContains(Vector2F)
Checks whether this rectangle contains the point denoted by the specified vector.
Public methodEquals(Object)
Compares the passed rectangle to this one for equality.
(Overrides ObjectEquals(Object).)
Public methodEquals(RectangleF)
Compares the passed rectangle to this one for equality.
Public methodStatic memberFromBounds
Creates a new rectangle from the specified bounds.
Public methodGetHashCode
Gets the hash code of this rectangle.
(Overrides ObjectGetHashCode.)
Public methodIntersects
Checks whether this rectangle at least partially intersects the passed other one.
Public methodToString
Returns a String representation of this rectangle.
(Overrides ObjectToString.)
Public methodUnion
Creates the union of this rectangle and the specified other one.
Top
Extension Methods
  NameDescription
Public Extension MethodToRect
Converts the specified framework rectangle to an Unity rectangle.
(Defined by MathConversionExtensions.)
Top
See Also