private bool NotEqualTo(Rotation rhs) { bool ret = Interop.Rotation.Rotation_NotEqualTo(swigCPtr, Rotation.getCPtr(rhs)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private Rotation Add(Rotation other) { Rotation ret = new Rotation(Interop.Rotation.Rotation_Add(swigCPtr, Rotation.getCPtr(other)), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
/// <summary> /// Returns the shortest angle between two rotations in radians. /// </summary> /// <param name="q1">The first rotation.</param> /// <param name="q2">The second rotation.</param> /// <returns>The angle between the two rotation.</returns> /// <since_tizen> 3 </since_tizen> public static float AngleBetween(Rotation q1, Rotation q2) { float ret = Interop.Rotation.Rotation_AngleBetween(Rotation.getCPtr(q1), Rotation.getCPtr(q2)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
/// <summary> /// The spherical cubic interpolation. /// </summary> /// <param name="start">The start rotation.</param> /// <param name="end">The end rotation.</param> /// <param name="ctrl1">The control rotation for q1.</param> /// <param name="ctrl2">The control rotation for q2.</param> /// <param name="t">A progress value between 0 and 1.</param> /// <returns>The interpolated rotation.</returns> /// <since_tizen> 3 </since_tizen> public static Rotation Squad(Rotation start, Rotation end, Rotation ctrl1, Rotation ctrl2, float t) { Rotation ret = new Rotation(Interop.Rotation.Rotation_Squad(Rotation.getCPtr(start), Rotation.getCPtr(end), Rotation.getCPtr(ctrl1), Rotation.getCPtr(ctrl2), t), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
/// <summary> /// This version of slerp, used by squad, does not check for theta > 90. /// </summary> /// <param name="q1">The start rotation.</param> /// <param name="q2">The end rotation.</param> /// <param name="t">A progress value between 0 and 1.</param> /// <returns>The interpolated rotation.</returns> /// <since_tizen> 3 </since_tizen> public static Rotation SlerpNoInvert(Rotation q1, Rotation q2, float t) { Rotation ret = new Rotation(Interop.Rotation.Rotation_SlerpNoInvert(Rotation.getCPtr(q1), Rotation.getCPtr(q2), t), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private Rotation MultiplyAssign(Rotation other) { Rotation ret = new Rotation(Interop.Rotation.MultiplyAssign(SwigCPtr, Rotation.getCPtr(other)), false); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private Vector3 MultiplyAssign(Rotation rhs) { Vector3 ret = new Vector3(Interop.Vector3.Vector3_MultiplyAssign__SWIG_2(swigCPtr, Rotation.getCPtr(rhs)), false); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
/// <summary> /// Creates a Rotation property value. /// </summary> /// <param name="quaternion">Rotation values.</param> /// <since_tizen> 3 </since_tizen> public PropertyValue(Rotation quaternion) : this(Interop.PropertyValue.NewPropertyValueQuaternion(Rotation.getCPtr(quaternion)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
private Vector3 MultiplyAssign(Rotation rhs) { Vector3 ret = new Vector3(Interop.Vector3.MultiplyAssignQuaternion(SwigCPtr, Rotation.getCPtr(rhs)), false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; }
/// <summary> /// The spherical linear interpolation (using the shortest arc of a great circle between the two rotations). /// </summary> /// <param name="q1">The start rotation.</param> /// <param name="q2">The end rotation.</param> /// <param name="progress">A progress value between 0 and 1.</param> /// <returns>The interpolated rotation.</returns> /// <since_tizen> 3 </since_tizen> public static Rotation Slerp(Rotation q1, Rotation q2, float progress) { Rotation ret = new Rotation(NDalicPINVOKE.Rotation_Slerp(Rotation.getCPtr(q1), Rotation.getCPtr(q2), progress), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private Rotation SubtractAssign(Rotation other) { Rotation ret = new Rotation(NDalicPINVOKE.Rotation_SubtractAssign(swigCPtr, Rotation.getCPtr(other)), false); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private Rotation Divide(Rotation other) { Rotation ret = new Rotation(NDalicPINVOKE.Rotation_Divide__SWIG_0(swigCPtr, Rotation.getCPtr(other)), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }