C# Класс RVO.Vector2

Defines a two-dimensional vector.
Показать файл Открыть проект Примеры использования класса

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

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