Edit

Share via


Quaternion.Create Method

Definition

Overloads

Create(Vector3, Single)

Creates a Quaternion from the specified vector and rotation parts.

Create(Single, Single, Single, Single)

Creates a Quaternion from the specified components.

Create(Vector3, Single)

Creates a Quaternion from the specified vector and rotation parts.

public:
 static System::Numerics::Quaternion Create(System::Numerics::Vector3 vectorPart, float scalarPart);
public static System.Numerics.Quaternion Create(System.Numerics.Vector3 vectorPart, float scalarPart);
static member Create : System.Numerics.Vector3 * single -> System.Numerics.Quaternion
Public Shared Function Create (vectorPart As Vector3, scalarPart As Single) As Quaternion

Parameters

vectorPart
Vector3

The vector part of the quaternion.

scalarPart
Single

The rotation part of the quaternion.

Returns

A Quaternion created from the specified vector and rotation parts.

Applies to

Create(Single, Single, Single, Single)

Creates a Quaternion from the specified components.

public:
 static System::Numerics::Quaternion Create(float x, float y, float z, float w);
public static System.Numerics.Quaternion Create(float x, float y, float z, float w);
static member Create : single * single * single * single -> System.Numerics.Quaternion
Public Shared Function Create (x As Single, y As Single, z As Single, w As Single) As Quaternion

Parameters

x
Single

The value to assign to the X component of the quaternion.

y
Single

The value to assign to the Y component of the quaternion.

z
Single

The value to assign to the Z component of the quaternion.

w
Single

The value to assign to the W component of the quaternion.

Returns

A Quaternion created from the specified components.

Applies to