Added GetRotateQuat()

This commit is contained in:
2024-08-01 01:39:33 +08:00
parent 6a688a2991
commit 7589d62732
2 changed files with 19 additions and 1 deletions

View File

@@ -215,7 +215,8 @@ namespace hgl
return root*child;
}
const Matrix4f GetRotateMatrix(const Vector3f &world_position,const Vector3f &cur_direction,const Vector3f &new_direction);
const Matrix4f GetRotateMatrix(const Vector3f &world_position,const Vector3f &cur_direction,const Vector3f &new_direction);
const Quatf GetRotateQuat(const Vector3f &world_position,const Vector3f &cur_direction,const Vector3f &new_direction);
/**
* 带误差的比较两个浮点矩阵是否相等