Class Quaternion
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
QuaternionHandleTransfer ownership: None Nullable: False
b
QuaternionHandleTransfer 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
QuaternionHandleTransfer ownership: None Nullable: False
b
QuaternionHandleTransfer 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
QuaternionHandleTransfer 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
QuaternionHandleTransfer ownership: None Nullable: False
x
floatTransfer ownership: None Nullable: False
y
floatTransfer ownership: None Nullable: False
z
floatTransfer ownership: None Nullable: False
w
floatTransfer 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
QuaternionHandleTransfer ownership: None Nullable: False
angle
floatTransfer ownership: None Nullable: False
axis
Vec3HandleTransfer 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
QuaternionHandleTransfer ownership: None Nullable: False
degX
floatTransfer ownership: None Nullable: False
degY
floatTransfer ownership: None Nullable: False
degZ
floatTransfer 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
QuaternionHandleTransfer ownership: None Nullable: False
e
EulerHandleTransfer 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
QuaternionHandleTransfer ownership: None Nullable: False
m
MatrixHandleTransfer 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
QuaternionHandleTransfer ownership: None Nullable: False
src
QuaternionHandleTransfer 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
QuaternionHandleTransfer ownership: None Nullable: False
radX
floatTransfer ownership: None Nullable: False
radY
floatTransfer ownership: None Nullable: False
radZ
floatTransfer 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
QuaternionHandleTransfer ownership: None Nullable: False
src
Vec4HandleTransfer 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
QuaternionHandleTransfer 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
QuaternionHandleTransfer ownership: None Nullable: False
degX
floatTransfer ownership: Full Nullable: False
degY
floatTransfer ownership: Full Nullable: False
degZ
floatTransfer 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
QuaternionHandleTransfer ownership: None Nullable: False
radX
floatTransfer ownership: Full Nullable: False
radY
floatTransfer ownership: Full Nullable: False
radZ
floatTransfer ownership: Full Nullable: False