Edit

Share via


Vector3.CreateScalarUnsafe(Single) Method

Definition

Creates a vector with X initialized to the specified value and the remaining elements left uninitialized.

public:
 static System::Numerics::Vector3 CreateScalarUnsafe(float x);
public static System.Numerics.Vector3 CreateScalarUnsafe(float x);
static member CreateScalarUnsafe : single -> System.Numerics.Vector3
Public Shared Function CreateScalarUnsafe (x As Single) As Vector3

Parameters

x
Single

The value to assign to the X field.

Returns

A new Vector3 with X initialized x and the remaining elements left uninitialized.

Applies to