C# Class FontEffectsLib.CoreTypes.RectangleF

Represents a rectangle created using floating point coordinates.
Show file Open project: GreatMindsRobotics/FontEffectsLib Class Usage Examples

Public Properties

Property Type Description
Height float
Width float
X float
Y float

Public Methods

Method Description
Contains ( Point value ) : bool

Determines whether this RectangleF contains a specified Point.

Contains ( Rectangle value ) : bool

Determines whether this Rectangle entirely contains a specified Rectangle.

Contains ( RectangleF value ) : bool

Determines whether this RectangleF entirely contains a specified RectangleF.

Contains ( Vector2 value ) : bool

Determines whether this RectangleF contains a specified point represented by a floating point vector.

Contains ( float x, float y ) : bool

Determines whether this RectangleF contains a specified point represented by its X- and Y-coordinates.

Equals ( Rectangle other ) : bool

Determines whether the specified Object is equal to the Rectangle.

Equals ( RectangleF other ) : bool

Determines whether the specified Object is equal to the RectangleF.

Equals ( object obj ) : bool

Returns a value that indicates whether the current instance is equal to a specified object.

GetHashCode ( ) : int

Gets the hash code for this object.

Inflate ( float horizontalAmount, float verticalAmount ) : void

Pushes the edges of the Rectangle out by the horizontal and vertical values specified.

Intersects ( Rectangle value ) : bool

Determines whether a specified Rectangle intersects with this RectangleF.

Intersects ( RectangleF value ) : bool

Determines whether a specified Rectangle intersects with this RectangleF.

RectangleF ( float x, float y, float width, float height ) : System

Initializes a new instance of Rectangle.

ToString ( ) : string

Retrieves a string representation of the current object.

ToString ( IFormatProvider formatter ) : string

Retrieves a string representation of the current object.

operator ( ) : bool

Compares two rectangles for inequality.

Method Details

Contains() public method

Determines whether this RectangleF contains a specified Point.
public Contains ( Point value ) : bool
value Point The Point to evaluate.
return bool

Contains() public method

Determines whether this Rectangle entirely contains a specified Rectangle.
public Contains ( Rectangle value ) : bool
value Microsoft.Xna.Framework.Rectangle The Rectangle to evaluate.
return bool

Contains() public method

Determines whether this RectangleF entirely contains a specified RectangleF.
public Contains ( RectangleF value ) : bool
value RectangleF The RectangleF to evaluate.
return bool

Contains() public method

Determines whether this RectangleF contains a specified point represented by a floating point vector.
public Contains ( Vector2 value ) : bool
value Vector2 The Vector2 to evaluate.
return bool

Contains() public method

Determines whether this RectangleF contains a specified point represented by its X- and Y-coordinates.
public Contains ( float x, float y ) : bool
x float The x-coordinate of the specified point.
y float The y-coordinate of the specified point.
return bool

Equals() public method

Determines whether the specified Object is equal to the Rectangle.
public Equals ( Rectangle other ) : bool
other Microsoft.Xna.Framework.Rectangle The Object to compare with the current Rectangle.
return bool

Equals() public method

Determines whether the specified Object is equal to the RectangleF.
public Equals ( RectangleF other ) : bool
other RectangleF The Object to compare with the current RectangleF.
return bool

Equals() public method

Returns a value that indicates whether the current instance is equal to a specified object.
public Equals ( object obj ) : bool
obj object Object to make the comparison with.
return bool

GetHashCode() public method

Gets the hash code for this object.
public GetHashCode ( ) : int
return int

Inflate() public method

Pushes the edges of the Rectangle out by the horizontal and vertical values specified.
public Inflate ( float horizontalAmount, float verticalAmount ) : void
horizontalAmount float Value to push the sides out by.
verticalAmount float Value to push the top and bottom out by.
return void

Intersects() public method

Determines whether a specified Rectangle intersects with this RectangleF.
public Intersects ( Rectangle value ) : bool
value Microsoft.Xna.Framework.Rectangle The Rectangle to evaluate.
return bool

Intersects() public method

Determines whether a specified Rectangle intersects with this RectangleF.
public Intersects ( RectangleF value ) : bool
value RectangleF The RectangleF to evaluate.
return bool

RectangleF() public method

Initializes a new instance of Rectangle.
public RectangleF ( float x, float y, float width, float height ) : System
x float The x-coordinate of the rectangle.
y float The y-coordinate of the rectangle.
width float Width of the rectangle.
height float Height of the rectangle.
return System

ToString() public method

Retrieves a string representation of the current object.
public ToString ( ) : string
return string

ToString() public method

Retrieves a string representation of the current object.
public ToString ( IFormatProvider formatter ) : string
formatter IFormatProvider
return string

operator() public static method

Compares two rectangles for inequality.
public static operator ( ) : bool
return bool

Property Details

Height public property

public float Height
return float

Width public property

public float Width
return float

X public property

public float X
return float

Y public property

public float Y
return float