MathTypes.h 654 B

12345678910111213141516171819202122232425262728293031323334
  1. // Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
  2. // SPDX-FileCopyrightText: 2021 Jorrit Rouwe
  3. // SPDX-License-Identifier: MIT
  4. #pragma once
  5. JPH_NAMESPACE_BEGIN
  6. class Vec3;
  7. class DVec3;
  8. class Vec4;
  9. class UVec4;
  10. class Vec8;
  11. class UVec8;
  12. class Quat;
  13. class Mat44;
  14. class DMat44;
  15. // Types to use for passing arguments to functions
  16. using Vec3Arg = Vec3;
  17. #ifdef JPH_USE_AVX
  18. using DVec3Arg = DVec3;
  19. #else
  20. using DVec3Arg = const DVec3 &;
  21. #endif
  22. using Vec4Arg = Vec4;
  23. using UVec4Arg = UVec4;
  24. using Vec8Arg = Vec8;
  25. using UVec8Arg = UVec8;
  26. using QuatArg = Quat;
  27. using Mat44Arg = const Mat44 &;
  28. using DMat44Arg = const DMat44 &;
  29. JPH_NAMESPACE_END