C# Class RVO.Vector2

Defines a two-dimensional vector.
Datei anzeigen Open project: snape/RVO2-CS Class Usage Examples

Public Methods

Method Description
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. *

Method Details

ToString() public method

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

Vector2() public method

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. *
return System

operator() public static method

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

operator() public static method

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

x() public method

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

y() public method

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