/// <param name="x">The x component.</param>
/// <param name="y">The y component.</param>
/// <since_tizen> 3 </since_tizen>
- public RelativeVector2(float x, float y) : this(Interop.Vector2.new_Vector2__SWIG_1(ValueCheck(x), ValueCheck(y)), true)
+ public RelativeVector2(float x, float y) : this(Interop.Vector2.new_Vector2__SWIG_1(x, y), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
{
set
{
- Interop.Vector2.Vector2_X_set(swigCPtr, ValueCheck(value));
+ Interop.Vector2.Vector2_X_set(swigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
set
{
- Interop.Vector2.Vector2_Y_set(swigCPtr, ValueCheck(value));
+ Interop.Vector2.Vector2_Y_set(swigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
public static RelativeVector2 operator +(RelativeVector2 arg1, RelativeVector2 arg2)
{
RelativeVector2 result = arg1.Add(arg2);
- return ValueCheck(result);
+ return result;
}
/// <summary>
public static RelativeVector2 operator -(RelativeVector2 arg1, RelativeVector2 arg2)
{
RelativeVector2 result = arg1.Subtract(arg2);
- return ValueCheck(result);
+ return result;
}
/// <summary>
public static RelativeVector2 operator *(RelativeVector2 arg1, RelativeVector2 arg2)
{
RelativeVector2 result = arg1.Multiply(arg2);
- return ValueCheck(result);
+ return result;
}
/// <summary>
public static RelativeVector2 operator *(RelativeVector2 arg1, float arg2)
{
RelativeVector2 result = arg1.Multiply(arg2);
- return ValueCheck(result);
+ return result;
}
/// <summary>
public static RelativeVector2 operator /(RelativeVector2 arg1, RelativeVector2 arg2)
{
RelativeVector2 result = arg1.Divide(arg2);
- return ValueCheck(result);
+ return result;
}
/// <summary>
public static RelativeVector2 operator /(RelativeVector2 arg1, float arg2)
{
RelativeVector2 result = arg1.Divide(arg2);
- return ValueCheck(result);
+ return result;
}
/// <summary>
/// <since_tizen> 3 </since_tizen>
public static implicit operator RelativeVector2(Vector2 vec)
{
- return new RelativeVector2(ValueCheck(vec.X), ValueCheck(vec.Y));
+ return new RelativeVector2(vec.X, vec.Y);
}
/// <summary>
return ret;
}
- 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;
- }
-
- internal static float ValueCheck(float value)
- {
- if (value < 0.0f)
- {
- value = 0.0f;
- NUILog.Error("The value of Parameters is invalid! Should be between [0, 1].");
- }
- else if (value > 1.0f)
- {
- value = 1.0f;
- NUILog.Error("The value of Parameters is invalid! Should be between [0, 1].");
- }
- return value;
- }
-
/// This will not be public opened.
[EditorBrowsable(EditorBrowsableState.Never)]
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
/// <param name="y">The y component.</param>
/// <param name="z">The z component.</param>
/// <since_tizen> 3 </since_tizen>
- public RelativeVector3(float x, float y, float z) : this(Interop.Vector3.new_Vector3__SWIG_1(ValueCheck(x), ValueCheck(y), ValueCheck(z)), true)
+ public RelativeVector3(float x, float y, float z) : this(Interop.Vector3.new_Vector3__SWIG_1(x, y, z), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
{
set
{
- Interop.Vector3.Vector3_X_set(swigCPtr, ValueCheck(value));
+ Interop.Vector3.Vector3_X_set(swigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
set
{
- Interop.Vector3.Vector3_Y_set(swigCPtr, ValueCheck(value));
+ Interop.Vector3.Vector3_Y_set(swigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
set
{
- Interop.Vector3.Vector3_Z_set(swigCPtr, ValueCheck(value));
+ Interop.Vector3.Vector3_Z_set(swigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
public static RelativeVector3 operator +(RelativeVector3 arg1, RelativeVector3 arg2)
{
RelativeVector3 result = arg1.Add(arg2);
- return ValueCheck(result);
+ return result;
}
/// <summary>
public static RelativeVector3 operator -(RelativeVector3 arg1, RelativeVector3 arg2)
{
RelativeVector3 result = arg1.Subtract(arg2);
- return ValueCheck(result);
+ return result;
}
/// <summary>
public static RelativeVector3 operator *(RelativeVector3 arg1, RelativeVector3 arg2)
{
RelativeVector3 result = arg1.Multiply(arg2);
- return ValueCheck(result);
+ return result;
}
/// <summary>
public static RelativeVector3 operator *(RelativeVector3 arg1, float arg2)
{
RelativeVector3 result = arg1.Multiply(arg2);
- return ValueCheck(result);
+ return result;
}
/// <summary>
public static RelativeVector3 operator /(RelativeVector3 arg1, RelativeVector3 arg2)
{
RelativeVector3 result = arg1.Divide(arg2);
- return ValueCheck(result);
+ return result;
}
/// <summary>
public static RelativeVector3 operator /(RelativeVector3 arg1, float arg2)
{
RelativeVector3 result = arg1.Divide(arg2);
- return ValueCheck(result);
+ return result;
}
/// <summary>
/// <since_tizen> 3 </since_tizen>
public static implicit operator RelativeVector3(Vector3 vec)
{
- return new RelativeVector3(ValueCheck(vec.X), ValueCheck(vec.Y), ValueCheck(vec.Z));
+ return new RelativeVector3(vec.X, vec.Y, vec.Z);
}
/// <summary>
return ret;
}
- internal static RelativeVector3 ValueCheck(RelativeVector3 relativeVector3)
- {
- if (relativeVector3.X < 0.0f)
- {
- relativeVector3.X = 0.0f;
- NUILog.Error("The value of Result is invalid! Should be between [0, 1].");
- }
- else if (relativeVector3.X > 1.0f)
- {
- relativeVector3.X = 1.0f;
- NUILog.Error("The value of Result is invalid! Should be between [0, 1].");
- }
- if (relativeVector3.Y < 0.0f)
- {
- relativeVector3.Y = 0.0f;
- NUILog.Error("The value of Result is invalid! Should be between [0, 1].");
- }
- else if (relativeVector3.Y > 1.0f)
- {
- relativeVector3.Y = 1.0f;
- NUILog.Error("The value of Result is invalid! Should be between [0, 1].");
- }
- if (relativeVector3.Z < 0.0f)
- {
- relativeVector3.Z = 0.0f;
- NUILog.Error("The value of Result is invalid! Should be between [0, 1].");
- }
- else if (relativeVector3.Z > 1.0f)
- {
- relativeVector3.Z = 1.0f;
- NUILog.Error("The value of Result is invalid! Should be between [0, 1].");
- }
- return relativeVector3;
- }
-
- internal static float ValueCheck(float value)
- {
- if (value < 0.0f)
- {
- value = 0.0f;
- NUILog.Error("The value of Parameters is invalid! Should be between [0, 1].");
- }
- else if (value > 1.0f)
- {
- value = 1.0f;
- NUILog.Error("The value of Parameters is invalid! Should be between [0, 1].");
- }
- return value;
- }
-
/// <summary>
/// </summary>
internal static RelativeVector3 GetRelativeVector3FromPtr(global::System.IntPtr cPtr)
/// <param name="z">The z component.</param>
/// <param name="w">The w component.</param>
/// <since_tizen> 3 </since_tizen>
- public RelativeVector4(float x, float y, float z, float w) : this(Interop.Vector4.new_Vector4__SWIG_1(ValueCheck(x), ValueCheck(y), ValueCheck(z), ValueCheck(w)), true)
+ public RelativeVector4(float x, float y, float z, float w) : this(Interop.Vector4.new_Vector4__SWIG_1(x, y, z, w), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal RelativeVector4(RelativeVector4ChangedCallback cb, float x, float y, float z, float w) : this(Interop.Vector4.new_Vector4__SWIG_1(ValueCheck(x), ValueCheck(y), ValueCheck(z), ValueCheck(w)), true)
+ internal RelativeVector4(RelativeVector4ChangedCallback cb, float x, float y, float z, float w) : this(Interop.Vector4.new_Vector4__SWIG_1(x, y, z, w), true)
{
callback = cb;
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
{
set
{
- Interop.Vector4.Vector4_X_set(swigCPtr, ValueCheck(value));
+ Interop.Vector4.Vector4_X_set(swigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
callback?.Invoke(X, Y, Z, W);
{
set
{
- Interop.Vector4.Vector4_Y_set(swigCPtr, ValueCheck(value));
+ Interop.Vector4.Vector4_Y_set(swigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
callback?.Invoke(X, Y, Z, W);
{
set
{
- Interop.Vector4.Vector4_Z_set(swigCPtr, ValueCheck(value));
+ Interop.Vector4.Vector4_Z_set(swigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
callback?.Invoke(X, Y, Z, W);
{
set
{
- Interop.Vector4.Vector4_W_set(swigCPtr, ValueCheck(value));
+ Interop.Vector4.Vector4_W_set(swigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
callback?.Invoke(X, Y, Z, W);
public static RelativeVector4 operator +(RelativeVector4 arg1, RelativeVector4 arg2)
{
RelativeVector4 result = arg1.Add(arg2);
- return ValueCheck(result);
+ return result;
}
/// <summary>
public static RelativeVector4 operator -(RelativeVector4 arg1, RelativeVector4 arg2)
{
RelativeVector4 result = arg1.Subtract(arg2);
- return ValueCheck(result);
+ return result;
}
/// <summary>
public static RelativeVector4 operator *(RelativeVector4 arg1, RelativeVector4 arg2)
{
RelativeVector4 result = arg1.Multiply(arg2);
- return ValueCheck(result);
+ return result;
}
/// <summary>
public static RelativeVector4 operator *(RelativeVector4 arg1, float arg2)
{
RelativeVector4 result = arg1.Multiply(arg2);
- return ValueCheck(result);
+ return result;
}
/// <summary>
public static RelativeVector4 operator /(RelativeVector4 arg1, RelativeVector4 arg2)
{
RelativeVector4 result = arg1.Divide(arg2);
- return ValueCheck(result);
+ return result;
}
/// <summary>
public static RelativeVector4 operator /(RelativeVector4 arg1, float arg2)
{
RelativeVector4 result = arg1.Divide(arg2);
- return ValueCheck(result);
+ return result;
}
/// <summary>
/// <since_tizen> 3 </since_tizen>
public static implicit operator RelativeVector4(Vector4 vec)
{
- return new RelativeVector4(ValueCheck(vec.X), ValueCheck(vec.Y), ValueCheck(vec.Z), ValueCheck(vec.W));
+ return new RelativeVector4(vec.X, vec.Y, vec.Z, vec.W);
}
/// <summary>
return ret;
}
- internal static RelativeVector4 ValueCheck(RelativeVector4 relativeVector4)
- {
- if (relativeVector4.X < 0.0f)
- {
- relativeVector4.X = 0.0f;
- NUILog.Error("The value of Result is invalid! Should be between [0, 1].");
- }
- else if (relativeVector4.X > 1.0f)
- {
- relativeVector4.X = 1.0f;
- NUILog.Error("The value of Result is invalid! Should be between [0, 1].");
- }
- if (relativeVector4.Y < 0.0f)
- {
- relativeVector4.Y = 0.0f;
- NUILog.Error("The value of Result is invalid! Should be between [0, 1].");
- }
- else if (relativeVector4.Y > 1.0f)
- {
- relativeVector4.Y = 1.0f;
- NUILog.Error("The value of Result is invalid! Should be between [0, 1].");
- }
- if (relativeVector4.Z < 0.0f)
- {
- relativeVector4.Z = 0.0f;
- NUILog.Error("The value of Result is invalid! Should be between [0, 1].");
- }
- else if (relativeVector4.Z > 1.0f)
- {
- relativeVector4.Z = 1.0f;
- NUILog.Error("The value of Result is invalid! Should be between [0, 1].");
- }
- if (relativeVector4.W < 0.0f)
- {
- relativeVector4.W = 0.0f;
- NUILog.Error("The value of Result is invalid! Should be between [0, 1].");
- }
- else if (relativeVector4.W > 1.0f)
- {
- relativeVector4.W = 1.0f;
- NUILog.Error("The value of Result is invalid! Should be between [0, 1].");
- }
- return relativeVector4;
- }
-
- internal static float ValueCheck(float value)
- {
- if (value < 0.0f)
- {
- value = 0.0f;
- NUILog.Error("The value of Parameters is invalid! Should be between [0, 1].");
- }
- else if (value > 1.0f)
- {
- value = 1.0f;
- NUILog.Error("The value of Parameters is invalid! Should be between [0, 1].");
- }
- return value;
- }
-
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RelativeVector4 obj)
{
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;