C# Class IntVector2

Show file Open project: BigVikingGames/checkers-starter Class Usage Examples

Public Properties

Property Type Description
x int
y int

Public Methods

Method Description
Equals ( object obj ) : bool
GetHashCode ( ) : int
IntVector2 ( ) : UnityEngine
IntVector2 ( int x, int y ) : UnityEngine
Length ( ) : float
ManhattanLength ( ) : int
SquareMagnitude ( ) : int
ToString ( ) : string
operator ( ) : IntVector2,

Method Details

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

IntVector2() public method

public IntVector2 ( ) : UnityEngine
return UnityEngine

IntVector2() public method

public IntVector2 ( int x, int y ) : UnityEngine
x int
y int
return UnityEngine

Length() public method

public Length ( ) : float
return float

ManhattanLength() public method

public ManhattanLength ( ) : int
return int

SquareMagnitude() public method

public SquareMagnitude ( ) : int
return int

ToString() public method

public ToString ( ) : string
return string

operator() public static method

public static operator ( ) : IntVector2,
return IntVector2,

Property Details

x public property

public int x
return int

y public property

public int y
return int