Method WithIncX
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
WithIncX(Vector2, float)
Returns a copy of the vector with the x-coordinate incremented with the given value.
public static Vector2 WithIncX(this Vector2 vector, float xInc)
Parameters
vector
Vector2xInc
float
Returns
- Vector2
WithIncX(Vector3, float)
Returns a copy of the vector with the x-coordinate incremented with the given value.
public static Vector3 WithIncX(this Vector3 vector, float xInc)
Parameters
vector
Vector3xInc
float
Returns
- Vector3