BoneTransform.h 605 B

12345678910111213141516171819202122
  1. // ----------------------------------------------------------------
  2. // From Game Programming in C++ by Sanjay Madhav
  3. // Copyright (C) 2017 Sanjay Madhav. All rights reserved.
  4. //
  5. // Released under the BSD License
  6. // See LICENSE in root directory for full details.
  7. // ----------------------------------------------------------------
  8. #pragma once
  9. #include "Math.h"
  10. class BoneTransform
  11. {
  12. public:
  13. // For now, just make this data public
  14. Quaternion mRotation;
  15. Vector3 mTranslation;
  16. Matrix4 ToMatrix() const;
  17. static BoneTransform Interpolate(const BoneTransform& a, const BoneTransform& b, float f);
  18. };