Table of Contents

Method To3DXZ

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

To3DXZ(Vector2, float)

Converts a 2D vector to a 3D vector using the vector for the x and z coordinates, and the given value for the y coordinate.

public static Vector3 To3DXZ(this Vector2 vector, float y)

Parameters

vector Vector2
y float

Returns

Vector3

To3DXZ(Vector2)

Converts a 2D vector to a 3D vector using the vector for the x and z coordinates, and 0 for the y coordinate.

public static Vector3 To3DXZ(this Vector2 vector)

Parameters

vector Vector2

Returns

Vector3