C# Class FontEffectsLib.CoreTypes.RectangleF

Represents a rectangle created using floating point coordinates.
Afficher le fichier Open project: GreatMindsRobotics/FontEffectsLib Class Usage Examples

Méthodes publiques

Свойство Type Description
Height float
Width float
X float
Y float

Méthodes publiques

Méthode 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 méthode

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

Contains() public méthode

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

Contains() public méthode

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

Contains() public méthode

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.
Résultat bool

Contains() public méthode

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.
Résultat bool

Equals() public méthode

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.
Résultat bool

Equals() public méthode

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.
Résultat bool

Equals() public méthode

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.
Résultat bool

GetHashCode() public méthode

Gets the hash code for this object.
public GetHashCode ( ) : int
Résultat int

Inflate() public méthode

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.
Résultat void

Intersects() public méthode

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

Intersects() public méthode

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

RectangleF() public méthode

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.
Résultat System

ToString() public méthode

Retrieves a string representation of the current object.
public ToString ( ) : string
Résultat string

ToString() public méthode

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

operator() public static méthode

Compares two rectangles for inequality.
public static operator ( ) : bool
Résultat bool

Property Details

Height public_oe property

public float Height
Résultat float

Width public_oe property

public float Width
Résultat float

X public_oe property

public float X
Résultat float

Y public_oe property

public float Y
Résultat float