C# Класс FontEffectsLib.CoreTypes.RectangleF

Represents a rectangle created using floating point coordinates.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Height float
Width float
X float
Y float

Открытые методы

Метод Описание
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.

Описание методов

Contains() публичный Метод

Determines whether this RectangleF contains a specified Point.
public Contains ( Point value ) : bool
value Point The Point to evaluate.
Результат bool

Contains() публичный Метод

Determines whether this Rectangle entirely contains a specified Rectangle.
public Contains ( Rectangle value ) : bool
value Microsoft.Xna.Framework.Rectangle The Rectangle to evaluate.
Результат bool

Contains() публичный Метод

Determines whether this RectangleF entirely contains a specified RectangleF.
public Contains ( RectangleF value ) : bool
value RectangleF The RectangleF to evaluate.
Результат bool

Contains() публичный Метод

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.
Результат bool

Contains() публичный Метод

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.
Результат bool

Equals() публичный Метод

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.
Результат bool

Equals() публичный Метод

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.
Результат bool

Equals() публичный Метод

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.
Результат bool

GetHashCode() публичный Метод

Gets the hash code for this object.
public GetHashCode ( ) : int
Результат int

Inflate() публичный Метод

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.
Результат void

Intersects() публичный Метод

Determines whether a specified Rectangle intersects with this RectangleF.
public Intersects ( Rectangle value ) : bool
value Microsoft.Xna.Framework.Rectangle The Rectangle to evaluate.
Результат bool

Intersects() публичный Метод

Determines whether a specified Rectangle intersects with this RectangleF.
public Intersects ( RectangleF value ) : bool
value RectangleF The RectangleF to evaluate.
Результат bool

RectangleF() публичный Метод

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.
Результат System

ToString() публичный Метод

Retrieves a string representation of the current object.
public ToString ( ) : string
Результат string

ToString() публичный Метод

Retrieves a string representation of the current object.
public ToString ( IFormatProvider formatter ) : string
formatter IFormatProvider
Результат string

operator() публичный статический Метод

Compares two rectangles for inequality.
public static operator ( ) : bool
Результат bool

Описание свойств

Height публичное свойство

public float Height
Результат float

Width публичное свойство

public float Width
Результат float

X публичное свойство

public float X
Результат float

Y публичное свойство

public float Y
Результат float