Method To3DXY
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
To3DXY(Vector2, float)
Converts a 2D vector to a 3D vector using the vector for the x and y coordinates, and the given value for the z coordinate.
public static Vector3 To3DXY(this Vector2 vector, float z)
Parameters
vector
Vector2z
float
Returns
- Vector3
To3DXY(Vector2)
Converts a 2D vector to a 3D vector using the vector for the x and y coordinates, and 0 for the z coordinate.
public static Vector3 To3DXY(this Vector2 vector)
Parameters
vector
Vector2
Returns
- Vector3