C# 클래스 RVO.Vector2

Defines a two-dimensional vector.
파일 보기 프로젝트 열기: snape/RVO2-CS 1 사용 예제들

공개 메소드들

메소드 설명
ToString ( ) : string

Returns the string representation of this vector.

Vector2 ( float x, float y ) : System

Constructs and initializes a two-dimensional vector from the * specified xy-coordinates.

operator ( ) : Vector2

Computes the scalar multiplication of the specified * two-dimensional vector with the specified scalar value.

operator ( ) : float

Computes the dot product of the two specified * two-dimensional vectors.

x ( ) : float

Returns the x-coordinate of this two-dimensional vector. *

y ( ) : float

Returns the y-coordinate of this two-dimensional vector. *

메소드 상세

ToString() 공개 메소드

Returns the string representation of this vector.
public ToString ( ) : string
리턴 string

Vector2() 공개 메소드

Constructs and initializes a two-dimensional vector from the * specified xy-coordinates.
public Vector2 ( float x, float y ) : System
x float The x-coordinate of the two-dimensional vector. *
y float The y-coordinate of the two-dimensional vector. *
리턴 System

operator() 공개 정적인 메소드

Computes the scalar multiplication of the specified * two-dimensional vector with the specified scalar value.
public static operator ( ) : Vector2
리턴 Vector2

operator() 공개 정적인 메소드

Computes the dot product of the two specified * two-dimensional vectors.
public static operator ( ) : float
리턴 float

x() 공개 메소드

Returns the x-coordinate of this two-dimensional vector. *
public x ( ) : float
리턴 float

y() 공개 메소드

Returns the y-coordinate of this two-dimensional vector. *
public y ( ) : float
리턴 float