C# Класс AgaHackTools.Example.Shared.Math.Vector2

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
X float
Y float

Открытые методы

Метод Описание
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

Описание методов

DistanceTo() публичный Метод

Returns the distance from this Vector2 to the given Vector2
public DistanceTo ( Vector2 other ) : float
other Vector2
Результат float

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

Length() публичный Метод

Returns the length of this Vector2
public Length ( ) : float
Результат float

ToString() публичный Метод

public ToString ( ) : string
Результат string

Vector2() публичный Метод

Initializes a new Vector2 by copying the values of the given Vector2
public Vector2 ( Vector2 vec ) : System
vec Vector2
Результат System

Vector2() публичный Метод

Initializes a new Vector2 using the given float-array
public Vector2 ( float values ) : System
values float
Результат System

Vector2() публичный Метод

Initializes a new Vector2 using the given values
public Vector2 ( float x, float y ) : System
x float
y float
Результат System

operator() публичный статический Метод

public static operator ( ) : Vector2
Результат Vector2

operator() публичный статический Метод

public static operator ( ) : bool
Результат bool

this() публичный Метод

public this ( int i ) : float
i int
Результат float

Описание свойств

X публичное свойство

public float X
Результат float

Y публичное свойство

public float Y
Результат float