Vector2.CreateScalarUnsafe(Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a vector with X initialized to the specified value and the remaining elements left uninitialized.
public:
static System::Numerics::Vector2 CreateScalarUnsafe(float x);
public static System.Numerics.Vector2 CreateScalarUnsafe(float x);
static member CreateScalarUnsafe : single -> System.Numerics.Vector2
Public Shared Function CreateScalarUnsafe (x As Single) As Vector2
Parameters
Returns
A new Vector2 with X initialized x
and the remaining elements left uninitialized.