C# Класс Myre.UI.Int2D

Defines an vector with 2 integer components.
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
X int
Y int

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

Метод Описание
Equals ( Int2D value ) : bool

Indicates whether this instance and a specified Int2D are equal.

Equals ( object obj ) : bool

Indicates whether this instance and a specified object are equal.

GetHashCode ( ) : int

Returns a hash code for this instance.

Int2D ( Vector2 v ) : System

Initializes a new instance of the Int2D struct.

Int2D ( int value ) : System

Initializes a new instance of the Int2D struct.

Int2D ( int x, int y ) : System

Initializes a new instance of the Int2D struct.

ToString ( ) : string

Returns a string representation of the Int2D.

operator ( ) : Int2D

Implements the operator *.

operator ( ) : bool

Implements the operator !=.

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

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

Indicates whether this instance and a specified Int2D are equal.
public Equals ( Int2D value ) : bool
value Int2D The value to compare to.
Результат bool

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

Indicates whether this instance and a specified object are equal.
public Equals ( object obj ) : bool
obj object Another object to compare to.
Результат bool

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

Returns a hash code for this instance.
public GetHashCode ( ) : int
Результат int

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

Initializes a new instance of the Int2D struct.
public Int2D ( Vector2 v ) : System
v Microsoft.Xna.Framework.Vector2
Результат System

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

Initializes a new instance of the Int2D struct.
public Int2D ( int value ) : System
value int
Результат System

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

Initializes a new instance of the Int2D struct.
public Int2D ( int x, int y ) : System
x int
y int
Результат System

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

Returns a string representation of the Int2D.
public ToString ( ) : string
Результат string

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

Implements the operator *.
public static operator ( ) : Int2D
Результат Int2D

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

Implements the operator !=.
public static operator ( ) : bool
Результат bool

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

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

The x component of this vector.
public int X
Результат int

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

The y component of this vector.
public int Y
Результат int