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

Afficher le fichier Open project: aganonki/HackTools

Méthodes publiques

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

Méthodes publiques

Méthode 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 méthode

Returns the distance from this Vector2 to the given Vector2
public DistanceTo ( Vector2 other ) : float
other Vector2
Résultat float

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Length() public méthode

Returns the length of this Vector2
public Length ( ) : float
Résultat float

ToString() public méthode

public ToString ( ) : string
Résultat string

Vector2() public méthode

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

Vector2() public méthode

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

Vector2() public méthode

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

operator() public static méthode

public static operator ( ) : Vector2
Résultat Vector2

operator() public static méthode

public static operator ( ) : bool
Résultat bool

this() public méthode

public this ( int i ) : float
i int
Résultat float

Property Details

X public_oe property

public float X
Résultat float

Y public_oe property

public float Y
Résultat float