Add Rotate API in Rotation to rotate vector 90/260190/2
authorseungho <sbsh.baek@samsung.com>
Tue, 22 Jun 2021 00:47:31 +0000 (09:47 +0900)
committerseungho <sbsh.baek@samsung.com>
Tue, 22 Jun 2021 00:53:47 +0000 (09:53 +0900)
Change-Id: Ie6fdc740ad8becff2bfdde70e2be6157fb8fd97b
Signed-off-by: seungho <sbsh.baek@samsung.com>
dali-csharp-binder/src/dali_wrap.cpp

index 141ba0c30b145193fa4117c0a7ee22c5551d8a87..8963915acbcf90a2b94132c765aaf15c743b9a6b 100755 (executable)
@@ -8329,6 +8329,56 @@ SWIGEXPORT float SWIGSTDCALL CSharp_Dali_Rotation_AngleBetween(void * jarg1, voi
 }
 
 
+SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Rotation_Rotate_Vector3(void * nuiRotation, void * nuiVector3) {
+  void * jresult ;
+  Dali::Quaternion *quaternion = (Dali::Quaternion *)nuiRotation;
+  Dali::Vector3 *vector3 = (Dali::Vector3 *)nuiVector3;
+  Vector3 result;
+
+  if (!quaternion) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Quaternion const & type is null", 0);
+    return 0;
+  }
+  if (!vector3) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Quaternion const & type is null", 0);
+    return 0;
+  }
+  {
+    try {
+      result = ((Dali::Quaternion const *)quaternion)->Rotate(*vector3);
+    } CALL_CATCH_EXCEPTION(0);
+  }
+
+  jresult = new Dali::Vector3((const Dali::Vector3 &)result);;
+  return jresult;
+}
+
+
+SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Rotation_Rotate_Vector4(void * nuiRotation, void * nuiVector4) {
+  void * jresult ;
+  Dali::Quaternion *quaternion = (Dali::Quaternion *)nuiRotation;
+  Dali::Vector4 *vector4 = (Dali::Vector4 *)nuiVector4;
+  Vector3 result;
+
+  if (!quaternion) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Quaternion const & type is null", 0);
+    return 0;
+  }
+  if (!vector4) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Quaternion const & type is null", 0);
+    return 0;
+  }
+  {
+    try {
+      result = ((Dali::Quaternion const *)quaternion)->Rotate(*vector4);
+    } CALL_CATCH_EXCEPTION(0);
+  }
+
+  jresult = new Dali::Vector4((const Dali::Vector4 &)result);;
+  return jresult;
+}
+
+
 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Matrix__SWIG_0() {
   void * jresult ;
   Dali::Matrix *result = 0 ;