private RelativeVector2 Multiply(RelativeVector2 rhs) { RelativeVector2 ret = new RelativeVector2(Interop.Vector2.Multiply(SwigCPtr, RelativeVector2.getCPtr(rhs)), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
/// <summary> /// Compares if the rhs is not equal to. /// </summary> /// <param name="rhs">The vector to compare.</param> /// <returns>Returns true if the two vectors are not equal, otherwise false.</returns> /// <since_tizen> 3 </since_tizen> public bool NotEqualTo(RelativeVector2 rhs) { bool ret = Interop.Vector2.NotEqualTo(SwigCPtr, RelativeVector2.getCPtr(rhs)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private RelativeVector2 Divide(float rhs) { RelativeVector2 ret = new RelativeVector2(Interop.Vector2.Divide(SwigCPtr, rhs), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private RelativeVector2 Divide(RelativeVector2 rhs) { RelativeVector2 ret = new RelativeVector2(Interop.Vector2.Vector2_Divide__SWIG_0(swigCPtr, RelativeVector2.getCPtr(rhs)), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private RelativeVector2 Subtract(RelativeVector2 rhs) { RelativeVector2 ret = new RelativeVector2(NDalicPINVOKE.Vector2_Subtract__SWIG_0(swigCPtr, RelativeVector2.getCPtr(rhs)), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool Get(RelativeVector2 vectorValue) { bool ret = Interop.PropertyValue.GetVector2(swigCPtr, RelativeVector2.getCPtr(vectorValue)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private RelativeVector2 Multiply(float rhs) { RelativeVector2 ret = new RelativeVector2(Interop.Vector2.Vector2_Multiply__SWIG_1(swigCPtr, rhs), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
/// <summary> /// </summary> internal static RelativeVector2 GetRelativeVector2FromPtr(global::System.IntPtr cPtr) { RelativeVector2 ret = new RelativeVector2(cPtr, false); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
/// <summary> /// Determines whether the specified object is equal to the current object. /// </summary> /// <param name="obj">The object to compare with the current object.</param> /// <returns>true if the specified object is equal to the current object; otherwise, false.</returns> public override bool Equals(System.Object obj) { RelativeVector2 relativeRector2 = obj as RelativeVector2; bool equal = false; if (X == relativeRector2?.X && Y == relativeRector2?.Y) { equal = true; } return(equal); }
internal static RelativeVector2 ValueCheck(RelativeVector2 relativeVector2) { if (relativeVector2.X < 0.0f) { relativeVector2.X = 0.0f; NUILog.Error("The value of Result is invalid! Should be between [0, 1]."); } else if (relativeVector2.X > 1.0f) { relativeVector2.X = 1.0f; NUILog.Error("The value of Result is invalid! Should be between [0, 1]."); } if (relativeVector2.Y < 0.0f) { relativeVector2.Y = 0.0f; NUILog.Error("The value of Result is invalid! Should be between [0, 1]."); } else if (relativeVector2.Y > 1.0f) { relativeVector2.Y = 1.0f; NUILog.Error("The value of Result is invalid! Should be between [0, 1]."); } return(relativeVector2); }
/// <summary> /// The constructor. /// </summary> /// <param name="relativeVector2">The RelativeVector2 to create this vector from.</param> /// <since_tizen> 3 </since_tizen> public RelativeVector3(RelativeVector2 relativeVector2) : this(Interop.Vector3.NewVector3WithVector2(RelativeVector2.getCPtr(relativeVector2)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
/// <summary> /// The constructor. /// </summary> /// <param name="relativeVector2">The RelativeVector2 to create this vector from.</param> /// <since_tizen> 3 </since_tizen> public RelativeVector4(RelativeVector2 relativeVector2) : this(NDalicPINVOKE.new_Vector4__SWIG_3(RelativeVector2.getCPtr(relativeVector2)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
/// <summary> /// The division operator. /// </summary> /// <param name="arg1">The vector to divide.</param> /// <param name="arg2">The float value to scale the vector by.</param> /// <returns>The vector containing the result of the scaling.</returns> /// <since_tizen> 3 </since_tizen> public static RelativeVector2 operator /(RelativeVector2 arg1, float arg2) { RelativeVector2 result = arg1.Divide(arg2); return(result); }
/// <summary> /// The multiplication operator. /// </summary> /// <param name="arg1">The vector to multiply.</param> /// <param name="arg2">The float value to scale the vector.</param> /// <returns>The vector containing the result of the scaling.</returns> /// <since_tizen> 3 </since_tizen> public static RelativeVector2 operator *(RelativeVector2 arg1, float arg2) { RelativeVector2 result = arg1.Multiply(arg2); return(result); }
/// <summary> /// The subtraction operator. /// </summary> /// <param name="arg1">The vector to subtract.</param> /// <param name="arg2">The vector to subtract.</param> /// <returns>The vector containing the result of the subtraction.</returns> /// <since_tizen> 3 </since_tizen> public static RelativeVector2 operator -(RelativeVector2 arg1, RelativeVector2 arg2) { RelativeVector2 result = arg1.Subtract(arg2); return(result); }
/// <summary> /// The addition operator. /// </summary> /// <param name="arg1">The vector to add.</param> /// <param name="arg2">The vector to add.</param> /// <returns>The vector containing the result of the addition.</returns> /// <since_tizen> 3 </since_tizen> public static RelativeVector2 operator +(RelativeVector2 arg1, RelativeVector2 arg2) { RelativeVector2 result = arg1.Add(arg2); return(result); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RelativeVector2 obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
/// <summary> /// The division operator. /// </summary> /// <param name="arg1">The vector to divide.</param> /// <param name="arg2">The vector to divide.</param> /// <returns>The vector containing the result of the division.</returns> /// <since_tizen> 3 </since_tizen> public static RelativeVector2 operator /(RelativeVector2 arg1, RelativeVector2 arg2) { RelativeVector2 result = arg1.Divide(arg2); return(ValueCheck(result)); }
/// <summary> /// The multiplication operator. /// </summary> /// <param name="arg1">The vector to multiply.</param> /// <param name="arg2">The vector to multiply.</param> /// <returns>The vector containing the result of the multiplication.</returns> /// <since_tizen> 3 </since_tizen> public static RelativeVector2 operator *(RelativeVector2 arg1, RelativeVector2 arg2) { RelativeVector2 result = arg1.Multiply(arg2); return(ValueCheck(result)); }