C# Class Myre.UI.Int2D

Defines an vector with 2 integer components.
Exibir arquivo Open project: TomGillen/Myre Class Usage Examples

Public Properties

Property Type Description
X int
Y int

Public Methods

Method 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 method

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

Equals() public method

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

GetHashCode() public method

Returns a hash code for this instance.
public GetHashCode ( ) : int
return int

Int2D() public method

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

Int2D() public method

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

Int2D() public method

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

ToString() public method

Returns a string representation of the Int2D.
public ToString ( ) : string
return string

operator() public static method

Implements the operator *.
public static operator ( ) : Int2D
return Int2D

operator() public static method

Implements the operator !=.
public static operator ( ) : bool
return bool

Property Details

X public_oe property

The x component of this vector.
public int X
return int

Y public_oe property

The y component of this vector.
public int Y
return int