MathTypes.h 613 B

123456789101112131415161718192021222324252627282930
  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 Quat;
  11. class Mat44;
  12. class DMat44;
  13. // Types to use for passing arguments to functions
  14. using Vec3Arg = const Vec3;
  15. #ifdef JPH_USE_AVX
  16. using DVec3Arg = const DVec3;
  17. #else
  18. using DVec3Arg = const DVec3 &;
  19. #endif
  20. using Vec4Arg = const Vec4;
  21. using UVec4Arg = const UVec4;
  22. using QuatArg = const Quat;
  23. using Mat44Arg = const Mat44 &;
  24. using DMat44Arg = const DMat44 &;
  25. JPH_NAMESPACE_END