Class Rotation
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
The Rotation class.
C#Copypublic class Rotation : Disposable, IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
Declaration
C#Copypublic Rotation()
API Level: 3
Declaration
C#Copypublic Rotation(Radian angle, Vector3 axis)
Parameters
Type | Name | Description |
---|---|---|
Radian | angle | The angle around the axis. |
Vector3 | axis | The vector of the axis. |
API Level: 3
Fields
Declaration
C#Copyprotected bool swigCMemOwn
Field Value
Type | Description |
---|---|
System.Boolean |
API Level: 3
Properties
Declaration
C#Copypublic static Rotation IDENTITY { get; }
Property Value
Type | Description |
---|---|
Rotation |
API Level: 3
Methods
AngleBetween(Rotation, Rotation)
Returns the shortest angle between two rotations in radians.
Declaration
C#Copypublic static float AngleBetween(Rotation q1, Rotation q2)
Parameters
Type | Name | Description |
---|---|---|
Rotation | q1 | The first rotation. |
Rotation | q2 | The second rotation. |
Returns
Type | Description |
---|---|
Single | The angle between the two rotation. |
API Level: 3
Declaration
C#Copypublic void Conjugate()
API Level: 3
Declaration
C#Copyprotected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type |
Overrides
API Level: 3
Declaration
C#Copypublic static float Dot(Rotation q1, Rotation q2)
Parameters
Type | Name | Description |
---|---|---|
Rotation | q1 | The first rotation. |
Rotation | q2 | The second rotation. |
Returns
Type | Description |
---|---|
Single | The dot product of the two rotations. |
API Level: 3
Declaration
C#Copypublic Rotation Exp()
Returns
Type | Description |
---|---|
Rotation | The rotation representing the exponent. |
API Level: 3
Declaration
C#Copypublic bool GetAxisAngle(Vector3 axis, Radian angle)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | axis | The result of an an axis. |
Radian | angle | The result of angle in radians. |
Returns
Type | Description |
---|---|
System.Boolean | True if converted correctly. |
API Level: 3
Declaration
C#Copypublic void Invert()
API Level: 3
Declaration
C#Copypublic bool IsIdentity()
Returns
Type | Description |
---|---|
System.Boolean | True if this is identity quaternion. |
API Level: 3
Declaration
C#Copypublic float Length()
Returns
Type | Description |
---|---|
Single | The length of the rotation. |
API Level: 3
Declaration
C#Copypublic float LengthSquared()
Returns
Type | Description |
---|---|
Single | The squared length of the rotation. |
API Level: 3
Lerp(Rotation, Rotation, Single)
The linear iterpolation (using a straight line between the two rotations).
Declaration
C#Copypublic static Rotation Lerp(Rotation q1, Rotation q2, float t)
Parameters
Type | Name | Description |
---|---|---|
Rotation | q1 | The start rotation. |
Rotation | q2 | The end rotation. |
Single | t | A progress value between 0 and 1. |
Returns
Type | Description |
---|---|
Rotation | The interpolated rotation. |
API Level: 3
Declaration
C#Copypublic Rotation Log()
Returns
Type | Description |
---|---|
Rotation | The rotation representing the logarithm. |
API Level: 3
Declaration
C#Copypublic void Normalize()
API Level: 3
Declaration
C#Copypublic Rotation Normalized()
Returns
Type | Description |
---|---|
Rotation | A normalized version of this rotation. |
API Level: 3
Slerp(Rotation, Rotation, Single)
The spherical linear interpolation (using the shortest arc of a great circle between the two rotations).
Declaration
C#Copypublic static Rotation Slerp(Rotation q1, Rotation q2, float progress)
Parameters
Type | Name | Description |
---|---|---|
Rotation | q1 | The start rotation. |
Rotation | q2 | The end rotation. |
Single | progress | A progress value between 0 and 1. |
Returns
Type | Description |
---|---|
Rotation | The interpolated rotation. |
API Level: 3
SlerpNoInvert(Rotation, Rotation, Single)
This version of slerp, used by squad, does not check for theta > 90.
Declaration
C#Copypublic static Rotation SlerpNoInvert(Rotation q1, Rotation q2, float t)
Parameters
Type | Name | Description |
---|---|---|
Rotation | q1 | The start rotation. |
Rotation | q2 | The end rotation. |
Single | t | A progress value between 0 and 1. |
Returns
Type | Description |
---|---|
Rotation | The interpolated rotation. |
API Level: 3
Squad(Rotation, Rotation, Rotation, Rotation, Single)
The spherical cubic interpolation.
Declaration
C#Copypublic static Rotation Squad(Rotation start, Rotation end, Rotation ctrl1, Rotation ctrl2, float t)
Parameters
Type | Name | Description |
---|---|---|
Rotation | start | The start rotation. |
Rotation | end | The end rotation. |
Rotation | ctrl1 | The control rotation for q1. |
Rotation | ctrl2 | The control rotation for q2. |
Single | t | A progress value between 0 and 1. |
Returns
Type | Description |
---|---|
Rotation | The interpolated rotation. |
API Level: 3
Operators
Declaration
C#Copypublic static Rotation operator +(Rotation arg1, Rotation arg2)
Parameters
Type | Name | Description |
---|---|---|
Rotation | arg1 | The first rotation. |
Rotation | arg2 | The second rotation. |
Returns
Type | Description |
---|---|
Rotation | The rotation containing the result of the addition. |
API Level: 3
Declaration
C#Copypublic static Rotation operator /(Rotation arg1, float arg2)
Parameters
Type | Name | Description |
---|---|---|
Rotation | arg1 | Rotation. |
Single | arg2 | A value to scale by. |
Returns
Type | Description |
---|---|
Rotation | The rotation containing the result of scaling. |
API Level: 3
Declaration
C#Copypublic static Rotation operator /(Rotation arg1, Rotation arg2)
Parameters
Type | Name | Description |
---|---|---|
Rotation | arg1 | The first rotation. |
Rotation | arg2 | The second rotation. |
Returns
Type | Description |
---|---|
Rotation | The rotation containing the result of scaling. |
API Level: 3
Declaration
C#Copypublic static Rotation operator *(Rotation arg1, float arg2)
Parameters
Type | Name | Description |
---|---|---|
Rotation | arg1 | Rotation. |
Single | arg2 | A value to scale by. |
Returns
Type | Description |
---|---|
Rotation | The rotation containing the result of scaling. |
API Level: 3
Declaration
C#Copypublic static Rotation operator *(Rotation arg1, Rotation arg2)
Parameters
Type | Name | Description |
---|---|---|
Rotation | arg1 | The first rotation. |
Rotation | arg2 | The second rotation. |
Returns
Type | Description |
---|---|
Rotation | The rotation containing the result of the multiplication. |
API Level: 3
Declaration
C#Copypublic static Vector3 operator *(Rotation arg1, Vector3 arg2)
Parameters
Type | Name | Description |
---|---|---|
Rotation | arg1 | Rotation. |
Vector3 | arg2 | The vector to multiply. |
Returns
Type | Description |
---|---|
Vector3 | The rotation containing the result of the multiplication. |
API Level: 3
Declaration
C#Copypublic static Rotation operator -(Rotation arg1, Rotation arg2)
Parameters
Type | Name | Description |
---|---|---|
Rotation | arg1 | The first rotation. |
Rotation | arg2 | The second rotation. |
Returns
Type | Description |
---|---|
Rotation | The rotation containing the result of the subtraction. |
API Level: 3
Declaration
C#Copypublic static Rotation operator -(Rotation arg1)
Parameters
Type | Name | Description |
---|---|---|
Rotation | arg1 | The first rotation. |
Returns
Type | Description |
---|---|
Rotation | The rotation containing the negated result. |