Table of Contents

Method To3DYZ

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

To3DYZ(Vector2, float)

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

public static Vector3 To3DYZ(this Vector2 vector, float x)

Parameters

vector Vector2
x float

Returns

Vector3

To3DYZ(Vector2)

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

public static Vector3 To3DYZ(this Vector2 vector)

Parameters

vector Vector2

Returns

Vector3