C# 클래스 GameEngine.Vector2

파일 보기 프로젝트 열기: Kursledare/Mookieraw 1 사용 예제들

공개 메소드들

메소드 설명
Distance ( Vector2 b ) : float

Calculate Distance from this Vector2 to another Vector2

Distance ( Vector2 a, Vector2 b ) : float

Calculate Distance between 2 Vector2

Normalize ( Vector2 b ) : Vector2

Calculate Unit Vector from this Vector2 to Second Vector2(A Vector2 with magnitude of 1).

Normalize ( Vector2 a, Vector2 b ) : Vector2

Calculate Unit Vector based on the 2 Vector2(A Vector2 with magnitude of 1).

Vector2 ( float x, float y ) : System
operator ( ) : Vector2

메소드 상세

Distance() 공개 메소드

Calculate Distance from this Vector2 to another Vector2
public Distance ( Vector2 b ) : float
b Vector2 Second Vector2
리턴 float

Distance() 공개 정적인 메소드

Calculate Distance between 2 Vector2
public static Distance ( Vector2 a, Vector2 b ) : float
a Vector2 First Vector2
b Vector2 Second Vector2
리턴 float

Normalize() 공개 메소드

Calculate Unit Vector from this Vector2 to Second Vector2(A Vector2 with magnitude of 1).
public Normalize ( Vector2 b ) : Vector2
b Vector2 Second Vector2
리턴 Vector2

Normalize() 공개 정적인 메소드

Calculate Unit Vector based on the 2 Vector2(A Vector2 with magnitude of 1).
public static Normalize ( Vector2 a, Vector2 b ) : Vector2
a Vector2 First Vector2
b Vector2 Second Vector2
리턴 Vector2

Vector2() 공개 메소드

public Vector2 ( float x, float y ) : System
x float
y float
리턴 System

operator() 공개 정적인 메소드

public static operator ( ) : Vector2
리턴 Vector2