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
Methods
Alloc()
[Version("1.0")]
public static Quaternion Alloc()
Returns
Dot(Quaternion)
[Version("1.0")]
public float Dot(Quaternion b)
Parameters
Returns
Equal(Quaternion)
[Version("1.0")]
public bool Equal(Quaternion b)
Parameters
Returns
Equals(Quaternion?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Quaternion? other)
Parameters
other
QuaternionAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Free()
[Version("1.0")]
public void Free()
GetGType()
public static Type GetGType()
Returns
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
Returns
InitFromAngleVec3(float, Vec3)
[Version("1.0")]
public Quaternion InitFromAngleVec3(float angle, Vec3 axis)
Parameters
Returns
InitFromAngles(float, float, float)
[Version("1.0")]
public Quaternion InitFromAngles(float degX, float degY, float degZ)
Parameters
Returns
InitFromEuler(Euler)
[Version("1.2")]
public Quaternion InitFromEuler(Euler e)
Parameters
e
Euler
Returns
InitFromMatrix(Matrix)
[Version("1.0")]
public Quaternion InitFromMatrix(Matrix m)
Parameters
m
Matrix
Returns
InitFromQuaternion(Quaternion)
[Version("1.0")]
public Quaternion InitFromQuaternion(Quaternion src)
Parameters
src
Quaternion
Returns
InitFromRadians(float, float, float)
[Version("1.0")]
public Quaternion InitFromRadians(float radX, float radY, float radZ)
Parameters
Returns
InitFromVec4(Vec4)
[Version("1.0")]
public Quaternion InitFromVec4(Vec4 src)
Parameters
src
Vec4
Returns
InitIdentity()
[Version("1.0")]
public Quaternion InitIdentity()
Returns
ToAngles(out float, out float, out float)
[Version("1.2")]
public void ToAngles(out float degX, out float degY, out float degZ)
Parameters
ToRadians(out float, out float, out float)
[Version("1.2")]
public void ToRadians(out float radX, out float radY, out float radZ)