Пример #1
0
 /// <summary>
 /// Creates an angle in degrees from a radian.
 /// </summary>
 /// <param name="value">The initial value in radians.</param>
 /// <since_tizen> 3 </since_tizen>
 public Degree(Radian value) : this(Interop.Degree.NewDegree(Radian.getCPtr(value)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
 public void RemoveDirection(Radian direction)
 {
     Interop.PanGestureDetector.RemoveDirection(SwigCPtr, Radian.getCPtr(direction));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #3
0
 public void RemoveAngle(Radian angle)
 {
     Interop.PanGestureDetector.RemoveAngle(SwigCPtr, Radian.getCPtr(angle));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #4
0
 public void AddDirection(Radian direction, Radian threshold)
 {
     Interop.PanGestureDetector.AddDirection(SwigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #5
0
 public void AddAngle(Radian angle, Radian threshold)
 {
     Interop.PanGestureDetector.PanGestureDetector_AddAngle__SWIG_0(swigCPtr, Radian.getCPtr(angle), Radian.getCPtr(threshold));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #6
0
 public void AddDirection(Radian direction)
 {
     NDalicPINVOKE.PanGestureDetector_AddDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #7
0
 public void AddAngle(Radian angle)
 {
     NDalicPINVOKE.PanGestureDetector_AddAngle__SWIG_1(swigCPtr, Radian.getCPtr(angle));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #8
0
 /// <summary>
 /// The constructor from an axis and angle.
 /// </summary>
 /// <param name="angle">The angle around the axis.</param>
 /// <param name="axis">The vector of the axis.</param>
 /// <since_tizen> 3 </since_tizen>
 public Rotation(Radian angle, Vector3 axis) : this(Interop.Rotation.new_Rotation__SWIG_1(Radian.getCPtr(angle), Vector3.getCPtr(axis)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #9
0
        /// <summary>
        /// Converts the quaternion to an axis or angle pair.
        /// </summary>
        /// <param name="axis">The result of an an axis.</param>
        /// <param name="angle">The result of angle in radians.</param>
        /// <returns>True if converted correctly.</returns>
        /// <since_tizen> 3 </since_tizen>
        public bool GetAxisAngle(Vector3 axis, Radian angle)
        {
            bool ret = Interop.Rotation.Rotation_GetAxisAngle(swigCPtr, Vector3.getCPtr(axis), Radian.getCPtr(angle));

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }