Table of Contents

Struct GTAQuat

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

Represents a quaternion in the GTA coordinate space.

public readonly struct GTAQuat
Inherited Members

Constructors

GTAQuat(float, float, float, float)

Initializes a new instance of the GTAQuat struct.

public GTAQuat(float x, float y, float z, float w)

Parameters

x float

The X component of the quaternion.

y float

The Y component of the quaternion.

z float

The Z component of the quaternion.

w float

The W component of the quaternion.

Fields

W

The W component of this quaternion.

public readonly float W

Field Value

float

X

The X component of this quaternion.

public readonly float X

Field Value

float

Y

The Y component of this quaternion.

public readonly float Y

Field Value

float

Z

The Z component of this quaternion.

public readonly float Z

Field Value

float

Operators

implicit operator Quaternion(GTAQuat)

Converts a GTAQuat to a Quaternion.

public static implicit operator Quaternion(GTAQuat gtaQuat)

Parameters

gtaQuat GTAQuat

The value to convert

Returns

Quaternion

implicit operator GTAQuat(Quaternion)

Converts a Quaternion to a GTAQuat.

public static implicit operator GTAQuat(Quaternion quat)

Parameters

quat Quaternion

The value to convert.

Returns

GTAQuat