Vector4.Vector4 Method (Microsoft.Xna.Framework)

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

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

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: Microsoft.Xna.Framework.Vector3
The x, y and z coordinates in 4d-space.
Type: System.Single
The w coordinate in 4d-space.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop