C# Class AgaHackTools.Example.Shared.Math.Vector2

Show file Open project: aganonki/HackTools

Public Properties

Property Type Description
X float
Y float

Public Methods

Method Description
DistanceTo ( Vector2 other ) : float

Returns the distance from this Vector2 to the given Vector2

Equals ( object obj ) : bool
GetHashCode ( ) : int
Length ( ) : float

Returns the length of this Vector2

ToString ( ) : string
Vector2 ( Vector2 vec ) : System

Initializes a new Vector2 by copying the values of the given Vector2

Vector2 ( float values ) : System

Initializes a new Vector2 using the given float-array

Vector2 ( float x, float y ) : System

Initializes a new Vector2 using the given values

operator ( ) : Vector2
operator ( ) : bool
this ( int i ) : float

Method Details

DistanceTo() public method

Returns the distance from this Vector2 to the given Vector2
public DistanceTo ( Vector2 other ) : float
other Vector2
return float

Equals() public method

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

GetHashCode() public method

public GetHashCode ( ) : int
return int

Length() public method

Returns the length of this Vector2
public Length ( ) : float
return float

ToString() public method

public ToString ( ) : string
return string

Vector2() public method

Initializes a new Vector2 by copying the values of the given Vector2
public Vector2 ( Vector2 vec ) : System
vec Vector2
return System

Vector2() public method

Initializes a new Vector2 using the given float-array
public Vector2 ( float values ) : System
values float
return System

Vector2() public method

Initializes a new Vector2 using the given values
public Vector2 ( float x, float y ) : System
x float
y float
return System

operator() public static method

public static operator ( ) : Vector2
return Vector2

operator() public static method

public static operator ( ) : bool
return bool

this() public method

public this ( int i ) : float
i int
return float

Property Details

X public property

public float X
return float

Y public property

public float Y
return float