OBB.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include "OBB.h"
  9. #include <Include/ScriptCanvas/Libraries/Math/OBB.generated.h>
  10. namespace ScriptCanvas
  11. {
  12. namespace OBBFunctions
  13. {
  14. using namespace Data;
  15. OBBType FromAabb(const AABBType& source)
  16. {
  17. return OBBType::CreateFromAabb(source);
  18. }
  19. OBBType FromPositionRotationAndHalfLengths(Vector3Type position, QuaternionType rotation, Vector3Type halfLengths)
  20. {
  21. return OBBType::CreateFromPositionRotationAndHalfLengths(position, rotation, halfLengths);
  22. }
  23. BooleanType IsFinite(const OBBType& source)
  24. {
  25. return source.IsFinite();
  26. }
  27. Vector3Type GetAxisX(const OBBType& source)
  28. {
  29. return source.GetAxisX();
  30. }
  31. Vector3Type GetAxisY(const OBBType& source)
  32. {
  33. return source.GetAxisY();
  34. }
  35. Vector3Type GetAxisZ(const OBBType& source)
  36. {
  37. return source.GetAxisZ();
  38. }
  39. Vector3Type GetPosition(const OBBType& source)
  40. {
  41. return source.GetPosition();
  42. }
  43. } // namespace OBBFunctions
  44. } // namespace ScriptCanvas