mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
improved comment of function
This commit is contained in:
parent
00c8673ceb
commit
31593dccd4
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ float angle_to(glm::vec3 head_pos, glm::vec3 source_pos, float render_yaw, float
|
|||
return atan2(head_pos.x - source_pos.x, head_pos.z - source_pos.z) * 180.0f / PIf + render_yaw + head_yaw;
|
||||
}
|
||||
|
||||
// Helper function computes the angle between two 3D vectors
|
||||
// Helper function returns the positive angle in degrees between two 3D vectors
|
||||
float angleBetween(glm::vec3 * v1, glm::vec3 * v2) {
|
||||
return acos((glm::dot(*v1,*v2))/(glm::length(*v1) * glm::length(*v2))) * 180.f/PI;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue