C# Class Myre.UI.Int2D

Defines an vector with 2 integer components.
Afficher le fichier Open project: TomGillen/Myre Class Usage Examples

Méthodes publiques

Свойство Type Description
X int
Y int

Méthodes publiques

Méthode Description
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 !=.

Method Details

Equals() public méthode

Indicates whether this instance and a specified Int2D are equal.
public Equals ( Int2D value ) : bool
value Int2D The value to compare to.
Résultat bool

Equals() public méthode

Indicates whether this instance and a specified object are equal.
public Equals ( object obj ) : bool
obj object Another object to compare to.
Résultat bool

GetHashCode() public méthode

Returns a hash code for this instance.
public GetHashCode ( ) : int
Résultat int

Int2D() public méthode

Initializes a new instance of the Int2D struct.
public Int2D ( Vector2 v ) : System
v Microsoft.Xna.Framework.Vector2
Résultat System

Int2D() public méthode

Initializes a new instance of the Int2D struct.
public Int2D ( int value ) : System
value int
Résultat System

Int2D() public méthode

Initializes a new instance of the Int2D struct.
public Int2D ( int x, int y ) : System
x int
y int
Résultat System

ToString() public méthode

Returns a string representation of the Int2D.
public ToString ( ) : string
Résultat string

operator() public static méthode

Implements the operator *.
public static operator ( ) : Int2D
Résultat Int2D

operator() public static méthode

Implements the operator !=.
public static operator ( ) : bool
Résultat bool

Property Details

X public_oe property

The x component of this vector.
public int X
Résultat int

Y public_oe property

The y component of this vector.
public int Y
Résultat int