Declaración
func Vector2ToVector3(target Vector2) Vector3
go
Parámetros
Entrada
Nombre | Tipo | Descripción |
---|---|---|
Target | Vector2 | Target 2D vector |
Regresar
Tipo | Descripción |
---|---|
Vector3 | The transformed three-dimensional vector |
Convert a 2D vector to a 3D vector, and set the Z component of the 3D vector to 0
func Vector2ToVector3(target Vector2) Vector3
go
Nombre | Tipo | Descripción |
---|---|---|
Target | Vector2 | Target 2D vector |
Tipo | Descripción |
---|---|
Vector3 | The transformed three-dimensional vector |