Table of Contents

Method WithIncY

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

WithIncY(Vector2, float)

Returns a copy of the vector with the y-coordinate incremented with the given value.

public static Vector2 WithIncY(this Vector2 vector, float yInc)

Parameters

vector Vector2
yInc float

Returns

Vector2

WithIncY(Vector3, float)

Returns a copy of the vector with the y-coordinate incremented with the given value.

public static Vector3 WithIncY(this Vector3 vector, float yInc)

Parameters

vector Vector3
yInc float

Returns

Vector3