Table of Contents

Class Quaternion

Namespace
Graphene.Internal
Assembly
Graphene-1.0.dll
public class Quaternion
Inheritance
Quaternion
Inherited Members

Methods

Alloc()

Calls native constructor graphene_quaternion_alloc. Version: 1.0

[Version("1.0")]
public static extern QuaternionOwnedHandle Alloc()

Returns

QuaternionOwnedHandle

Transfer ownership: Full Nullable: False

Dot(QuaternionHandle, QuaternionHandle)

Calls native method graphene_quaternion_dot. Version: 1.0

[Version("1.0")]
public static extern float Dot(QuaternionHandle a, QuaternionHandle b)

Parameters

a QuaternionHandle

Transfer ownership: None Nullable: False

b QuaternionHandle

Transfer ownership: None Nullable: False

Returns

float

Transfer ownership: None Nullable: False

Equal(QuaternionHandle, QuaternionHandle)

Calls native method graphene_quaternion_equal. Version: 1.0

[Version("1.0")]
public static extern bool Equal(QuaternionHandle a, QuaternionHandle b)

Parameters

a QuaternionHandle

Transfer ownership: None Nullable: False

b QuaternionHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Free(QuaternionHandle)

Calls native method graphene_quaternion_free. Version: 1.0

[Version("1.0")]
public static extern void Free(QuaternionHandle q)

Parameters

q QuaternionHandle

Transfer ownership: None Nullable: False

GetGType()

Calls native function graphene_quaternion_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

Init(QuaternionHandle, float, float, float, float)

Calls native method graphene_quaternion_init. Version: 1.0

[Version("1.0")]
public static extern QuaternionUnownedHandle Init(QuaternionHandle q, float x, float y, float z, float w)

Parameters

q QuaternionHandle

Transfer ownership: None Nullable: False

x float

Transfer ownership: None Nullable: False

y float

Transfer ownership: None Nullable: False

z float

Transfer ownership: None Nullable: False

w float

Transfer ownership: None Nullable: False

Returns

QuaternionUnownedHandle

Transfer ownership: None Nullable: False

InitFromAngleVec3(QuaternionHandle, float, Vec3Handle)

Calls native method graphene_quaternion_init_from_angle_vec3. Version: 1.0

[Version("1.0")]
public static extern QuaternionUnownedHandle InitFromAngleVec3(QuaternionHandle q, float angle, Vec3Handle axis)

Parameters

q QuaternionHandle

Transfer ownership: None Nullable: False

angle float

Transfer ownership: None Nullable: False

axis Vec3Handle

Transfer ownership: None Nullable: False

Returns

QuaternionUnownedHandle

Transfer ownership: None Nullable: False

InitFromAngles(QuaternionHandle, float, float, float)

Calls native method graphene_quaternion_init_from_angles. Version: 1.0

[Version("1.0")]
public static extern QuaternionUnownedHandle InitFromAngles(QuaternionHandle q, float degX, float degY, float degZ)

Parameters

q QuaternionHandle

Transfer ownership: None Nullable: False

degX float

Transfer ownership: None Nullable: False

degY float

Transfer ownership: None Nullable: False

degZ float

Transfer ownership: None Nullable: False

Returns

QuaternionUnownedHandle

Transfer ownership: None Nullable: False

InitFromEuler(QuaternionHandle, EulerHandle)

Calls native method graphene_quaternion_init_from_euler. Version: 1.2

[Version("1.2")]
public static extern QuaternionUnownedHandle InitFromEuler(QuaternionHandle q, EulerHandle e)

Parameters

q QuaternionHandle

Transfer ownership: None Nullable: False

e EulerHandle

Transfer ownership: None Nullable: False

Returns

QuaternionUnownedHandle

Transfer ownership: None Nullable: False

InitFromMatrix(QuaternionHandle, MatrixHandle)

Calls native method graphene_quaternion_init_from_matrix. Version: 1.0

[Version("1.0")]
public static extern QuaternionUnownedHandle InitFromMatrix(QuaternionHandle q, MatrixHandle m)

Parameters

q QuaternionHandle

Transfer ownership: None Nullable: False

m MatrixHandle

Transfer ownership: None Nullable: False

Returns

QuaternionUnownedHandle

Transfer ownership: None Nullable: False

InitFromQuaternion(QuaternionHandle, QuaternionHandle)

Calls native method graphene_quaternion_init_from_quaternion. Version: 1.0

[Version("1.0")]
public static extern QuaternionUnownedHandle InitFromQuaternion(QuaternionHandle q, QuaternionHandle src)

Parameters

q QuaternionHandle

Transfer ownership: None Nullable: False

src QuaternionHandle

Transfer ownership: None Nullable: False

Returns

QuaternionUnownedHandle

Transfer ownership: None Nullable: False

InitFromRadians(QuaternionHandle, float, float, float)

Calls native method graphene_quaternion_init_from_radians. Version: 1.0

[Version("1.0")]
public static extern QuaternionUnownedHandle InitFromRadians(QuaternionHandle q, float radX, float radY, float radZ)

Parameters

q QuaternionHandle

Transfer ownership: None Nullable: False

radX float

Transfer ownership: None Nullable: False

radY float

Transfer ownership: None Nullable: False

radZ float

Transfer ownership: None Nullable: False

Returns

QuaternionUnownedHandle

Transfer ownership: None Nullable: False

InitFromVec4(QuaternionHandle, Vec4Handle)

Calls native method graphene_quaternion_init_from_vec4. Version: 1.0

[Version("1.0")]
public static extern QuaternionUnownedHandle InitFromVec4(QuaternionHandle q, Vec4Handle src)

Parameters

q QuaternionHandle

Transfer ownership: None Nullable: False

src Vec4Handle

Transfer ownership: None Nullable: False

Returns

QuaternionUnownedHandle

Transfer ownership: None Nullable: False

InitIdentity(QuaternionHandle)

Calls native method graphene_quaternion_init_identity. Version: 1.0

[Version("1.0")]
public static extern QuaternionUnownedHandle InitIdentity(QuaternionHandle q)

Parameters

q QuaternionHandle

Transfer ownership: None Nullable: False

Returns

QuaternionUnownedHandle

Transfer ownership: None Nullable: False

ToAngles(QuaternionHandle, out float, out float, out float)

Calls native method graphene_quaternion_to_angles. Version: 1.2

[Version("1.2")]
public static extern void ToAngles(QuaternionHandle q, out float degX, out float degY, out float degZ)

Parameters

q QuaternionHandle

Transfer ownership: None Nullable: False

degX float

Transfer ownership: Full Nullable: False

degY float

Transfer ownership: Full Nullable: False

degZ float

Transfer ownership: Full Nullable: False

ToRadians(QuaternionHandle, out float, out float, out float)

Calls native method graphene_quaternion_to_radians. Version: 1.2

[Version("1.2")]
public static extern void ToRadians(QuaternionHandle q, out float radX, out float radY, out float radZ)

Parameters

q QuaternionHandle

Transfer ownership: None Nullable: False

radX float

Transfer ownership: Full Nullable: False

radY float

Transfer ownership: Full Nullable: False

radZ float

Transfer ownership: Full Nullable: False