C# 클래스 AgaHackTools.Example.Shared.Math.Vector2

파일 보기 프로젝트 열기: aganonki/HackTools

공개 프로퍼티들

프로퍼티 타입 설명
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