C# Class RVO.Vector2

Defines a two-dimensional vector.
Afficher le fichier Open project: snape/RVO2-CS Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Returns the string representation of this vector.
public ToString ( ) : string
Résultat string

Vector2() public méthode

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. *
Résultat System

operator() public static méthode

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

operator() public static méthode

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

x() public méthode

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

y() public méthode

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