C# 클래스 Artemis.Engine.Maths.Geometry.VectorUtils

파일 보기 프로젝트 열기: ArtemisEngine/Artemis-Engine

공개 프로퍼티들

프로퍼티 타입 설명
Down Vector2
GameWorldDown Vector2
GameWorldUp Vector2
Left Vector2
Ones Vector2
Right Vector2
Up Vector2

공개 메소드들

메소드 설명
ComponentwiseProduct ( Vector2 a, Vector2 b ) : Vector2
Polar ( double angle, Vector2 origin, bool degrees = true ) : Vector2

Return the unit vector pointing at the given angle relative to the positive x-axis, centered at the given origin.

Polar ( double angle, bool degrees = true ) : Vector2

Return the unit vector pointing at the given angle relative to the positive x-axis.

Rotate ( Vector2 vec, double angle, Vector2 origin, bool degrees = true, bool absoluteOrigin = true ) : Vector2

Rotate a vector by the given amount relative to the given point, and return the result.

Scale ( Vector2 vec, double amount, Vector2 origin, bool absoluteOrigin = true ) : Vector2

Scale a vector by the given amount relative to the given point, and return the result.

ToNormalized ( Vector2 vec ) : Vector2

Return the normalization of a given vector.

ToVec ( Point p ) : Vector2
ToVec ( System p ) : Vector2

메소드 상세

ComponentwiseProduct() 공개 정적인 메소드

public static ComponentwiseProduct ( Vector2 a, Vector2 b ) : Vector2
a Vector2
b Vector2
리턴 Vector2

Polar() 공개 정적인 메소드

Return the unit vector pointing at the given angle relative to the positive x-axis, centered at the given origin.
public static Polar ( double angle, Vector2 origin, bool degrees = true ) : Vector2
angle double
origin Vector2
degrees bool
리턴 Vector2

Polar() 공개 정적인 메소드

Return the unit vector pointing at the given angle relative to the positive x-axis.
public static Polar ( double angle, bool degrees = true ) : Vector2
angle double
degrees bool
리턴 Vector2

Rotate() 공개 정적인 메소드

Rotate a vector by the given amount relative to the given point, and return the result.
public static Rotate ( Vector2 vec, double angle, Vector2 origin, bool degrees = true, bool absoluteOrigin = true ) : Vector2
vec Vector2
angle double
origin Vector2
degrees bool
absoluteOrigin bool
리턴 Vector2

Scale() 공개 정적인 메소드

Scale a vector by the given amount relative to the given point, and return the result.
public static Scale ( Vector2 vec, double amount, Vector2 origin, bool absoluteOrigin = true ) : Vector2
vec Vector2
amount double
origin Vector2
absoluteOrigin bool
리턴 Vector2

ToNormalized() 공개 정적인 메소드

Return the normalization of a given vector.
public static ToNormalized ( Vector2 vec ) : Vector2
vec Vector2
리턴 Vector2

ToVec() 공개 정적인 메소드

public static ToVec ( Point p ) : Vector2
p Point
리턴 Vector2

ToVec() 공개 정적인 메소드

public static ToVec ( System p ) : Vector2
p System
리턴 Vector2

프로퍼티 상세

Down 공개적으로 정적으로 프로퍼티

The unit vector point down (<0, -1>).
public static Vector2 Down
리턴 Vector2

GameWorldDown 공개적으로 정적으로 프로퍼티

The down direction relative to the game world. Since the game coordinate space is flipped on it's y-axis, this corresponds to the vector <0, 1>.
public static Vector2 GameWorldDown
리턴 Vector2

GameWorldUp 공개적으로 정적으로 프로퍼티

The up direction relative to the game world. Since the game coordinate space is flipped on it's y-axis, this corresponds to the vector <0, -1>.
public static Vector2 GameWorldUp
리턴 Vector2

Left 공개적으로 정적으로 프로퍼티

The unit vector pointing left (<-1, 0>).
public static Vector2 Left
리턴 Vector2

Ones 공개적으로 정적으로 프로퍼티

public static Vector2 Ones
리턴 Vector2

Right 공개적으로 정적으로 프로퍼티

The unit vector pointing right (<1, 0>).
public static Vector2 Right
리턴 Vector2

Up 공개적으로 정적으로 프로퍼티

The unit vector pointing up (<0, 1>).
public static Vector2 Up
리턴 Vector2