Method Dot
Dot(Vector2, Vector2)
Calculates the dot product of two vectors.
Declaration
public static float Dot(Vector2 left, Vector2 right)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | left | First source vector. |
| Vector2 | right | Second source vector. |
Returns
| Type | Description |
|---|---|
| System.Single | The dot product of the two vectors. |