MathTypes.h 590 B

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