From: seungho Date: Tue, 22 Jun 2021 00:47:31 +0000 (+0900) Subject: Add Rotate API in Rotation to rotate vector X-Git-Tag: submit/tizen/20210623.082820~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f6fd3bc367eae6a694833a3ed6016f5ac11e62a;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git Add Rotate API in Rotation to rotate vector Change-Id: Ie6fdc740ad8becff2bfdde70e2be6157fb8fd97b Signed-off-by: seungho --- diff --git a/dali-csharp-binder/src/dali_wrap.cpp b/dali-csharp-binder/src/dali_wrap.cpp index 141ba0c3..8963915a 100755 --- a/dali-csharp-binder/src/dali_wrap.cpp +++ b/dali-csharp-binder/src/dali_wrap.cpp @@ -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 ;