Table of Contents

Class Quaternion

Namespace
Graphene
Assembly
Graphene-1.0.dll
public sealed class Quaternion : BoxedRecord, IEquatable<Quaternion>
Inheritance
Quaternion
Implements
Inherited Members

Constructors

Quaternion()

public Quaternion()

Quaternion(QuaternionOwnedHandle)

public Quaternion(QuaternionOwnedHandle handle)

Parameters

handle QuaternionOwnedHandle

Properties

Handle

public QuaternionOwnedHandle Handle { get; }

Property Value

QuaternionOwnedHandle

Methods

Alloc()

[Version("1.0")]
public static Quaternion Alloc()

Returns

Quaternion

Dot(Quaternion)

[Version("1.0")]
public float Dot(Quaternion b)

Parameters

b Quaternion

Returns

float

Equal(Quaternion)

[Version("1.0")]
public bool Equal(Quaternion b)

Parameters

b Quaternion

Returns

bool

Equals(Quaternion?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Quaternion? other)

Parameters

other Quaternion

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Free()

[Version("1.0")]
public void Free()

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Init(float, float, float, float)

[Version("1.0")]
public Quaternion Init(float x, float y, float z, float w)

Parameters

x float
y float
z float
w float

Returns

Quaternion

InitFromAngleVec3(float, Vec3)

[Version("1.0")]
public Quaternion InitFromAngleVec3(float angle, Vec3 axis)

Parameters

angle float
axis Vec3

Returns

Quaternion

InitFromAngles(float, float, float)

[Version("1.0")]
public Quaternion InitFromAngles(float degX, float degY, float degZ)

Parameters

degX float
degY float
degZ float

Returns

Quaternion

InitFromEuler(Euler)

[Version("1.2")]
public Quaternion InitFromEuler(Euler e)

Parameters

e Euler

Returns

Quaternion

InitFromMatrix(Matrix)

[Version("1.0")]
public Quaternion InitFromMatrix(Matrix m)

Parameters

m Matrix

Returns

Quaternion

InitFromQuaternion(Quaternion)

[Version("1.0")]
public Quaternion InitFromQuaternion(Quaternion src)

Parameters

src Quaternion

Returns

Quaternion

InitFromRadians(float, float, float)

[Version("1.0")]
public Quaternion InitFromRadians(float radX, float radY, float radZ)

Parameters

radX float
radY float
radZ float

Returns

Quaternion

InitFromVec4(Vec4)

[Version("1.0")]
public Quaternion InitFromVec4(Vec4 src)

Parameters

src Vec4

Returns

Quaternion

InitIdentity()

[Version("1.0")]
public Quaternion InitIdentity()

Returns

Quaternion

ToAngles(out float, out float, out float)

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

Parameters

degX float
degY float
degZ float

ToRadians(out float, out float, out float)

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

Parameters

radX float
radY float
radZ float