Vector3.Vector3 Method (Microsoft.Xna.Framework)

Constructs a 3d vector with X, Y from Vector2 and Z from a scalar.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public Vector3(
	Vector2 value, 
	float z

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: Microsoft.Xna.Framework.Vector2
The x and y coordinates in 3d-space.
Type: System.Single
The z coordinate in 3d-space.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop