Table of Contents

Method WithX

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

WithX(Vector2, float)

Returns a copy of this vector with the given x-coordinate.

[Version(2, 0, 0)]
public static Vector2 WithX(this Vector2 vector, float x)

Parameters

vector Vector2
x float

Returns

Vector2

WithX(Vector3, float)

Returns a copy of this vector with the given x-coordinate.

[Version(2, 0, 0)]
public static Vector3 WithX(this Vector3 vector, float x)

Parameters

vector Vector3
x float

Returns

Vector3