MathTypes.h 659 B

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