Vector4 Vector4 Vector4 Vector4 Constructors

Definizione

Overload

Vector4(Single) Vector4(Single) Vector4(Single) Vector4(Single)

Crea un nuovo oggetto Vector4 i cui quattro elementi hanno lo stesso valore.Creates a new Vector4 object whose four elements have the same value.

Vector4(Vector3, Single) Vector4(Vector3, Single) Vector4(Vector3, Single) Vector4(Vector3, Single)

Costruisce un nuovo oggetto Vector4 dall'oggetto Vector3 specificato e da un componente W.Constructs a new Vector4 object from the specified Vector3 object and a W component.

Vector4(Vector2, Single, Single) Vector4(Vector2, Single, Single) Vector4(Vector2, Single, Single) Vector4(Vector2, Single, Single)

Crea un nuovo oggetto Vector4 dall'oggetto Vector2 specificato e dai componenti Z e W.Creates a new Vector4 object from the specified Vector2 object and a Z and a W component.

Vector4(Single, Single, Single, Single) Vector4(Single, Single, Single, Single) Vector4(Single, Single, Single, Single) Vector4(Single, Single, Single, Single)

Crea un vettore i cui elementi hanno i valori specificati.Creates a vector whose elements have the specified values.

Vector4(Single) Vector4(Single) Vector4(Single) Vector4(Single)

Crea un nuovo oggetto Vector4 i cui quattro elementi hanno lo stesso valore.Creates a new Vector4 object whose four elements have the same value.

public:
 Vector4(float value);
public Vector4 (float value);
new System.Numerics.Vector4 : single -> System.Numerics.Vector4
Public Sub New (value As Single)

Parametri

value
Single Single Single Single

Valore da assegnare a tutti e quattro gli elementi.The value to assign to all four elements.

Vector4(Vector3, Single) Vector4(Vector3, Single) Vector4(Vector3, Single) Vector4(Vector3, Single)

Costruisce un nuovo oggetto Vector4 dall'oggetto Vector3 specificato e da un componente W.Constructs a new Vector4 object from the specified Vector3 object and a W component.

public:
 Vector4(System::Numerics::Vector3 value, float w);
public Vector4 (System.Numerics.Vector3 value, float w);
new System.Numerics.Vector4 : System.Numerics.Vector3 * single -> System.Numerics.Vector4
Public Sub New (value As Vector3, w As Single)

Parametri

value
Vector3 Vector3 Vector3 Vector3

Vettore da usare per i componenti X, Y e Z.The vector to use for the X, Y, and Z components.

w
Single Single Single Single

Componente W.The W component.

Vector4(Vector2, Single, Single) Vector4(Vector2, Single, Single) Vector4(Vector2, Single, Single) Vector4(Vector2, Single, Single)

Crea un nuovo oggetto Vector4 dall'oggetto Vector2 specificato e dai componenti Z e W.Creates a new Vector4 object from the specified Vector2 object and a Z and a W component.

public:
 Vector4(System::Numerics::Vector2 value, float z, float w);
public Vector4 (System.Numerics.Vector2 value, float z, float w);
new System.Numerics.Vector4 : System.Numerics.Vector2 * single * single -> System.Numerics.Vector4
Public Sub New (value As Vector2, z As Single, w As Single)

Parametri

value
Vector2 Vector2 Vector2 Vector2

Vettore da usare per i componenti X e Y.The vector to use for the X and Y components.

z
Single Single Single Single

Componente Z.The Z component.

w
Single Single Single Single

Componente W.The W component.

Vector4(Single, Single, Single, Single) Vector4(Single, Single, Single, Single) Vector4(Single, Single, Single, Single) Vector4(Single, Single, Single, Single)

Crea un vettore i cui elementi hanno i valori specificati.Creates a vector whose elements have the specified values.

public:
 Vector4(float x, float y, float z, float w);
public Vector4 (float x, float y, float z, float w);
new System.Numerics.Vector4 : single * single * single * single -> System.Numerics.Vector4
Public Sub New (x As Single, y As Single, z As Single, w As Single)

Parametri

x
Single Single Single Single

Valore da assegnare al campo X.The value to assign to the X field.

y
Single Single Single Single

Valore da assegnare al campo Y.The value to assign to the Y field.

z
Single Single Single Single

Valore da assegnare al campo Z.The value to assign to the Z field.

w
Single Single Single Single

Valore da assegnare al campo W.The value to assign to the W field.

Si applica a