History

moved vector math helpers to Utils.cpp/h

ZappoMan committed 13 years ago

Commit 597f35d1 parent fc122f23 files · +27 −20Browse files

Showing the changes to interface/src/main.cpp (1 of 3 files). Show all

Unified · Split

interface/src/main.cpp+0−20
@@ -511,26 +511,6 @@ void simulateHead(float frametime) · 510 unmodified lines
511511 }
512512 }
513513
514−// These handy operators should probably go somewhere else, I'm surprised they don't
515−// already exist somewhere in OpenGL. Maybe someone can point me to them if they do exist!
516−glm::vec3 operator* (float lhs, const glm::vec3& rhs)
517−{
518− glm::vec3 result = rhs;
519− result.x *= lhs;
520− result.y *= lhs;
521− result.z *= lhs;
522− return result;
523−}
524−
525−glm::vec3 operator* (const glm::vec3& lhs, float rhs)
526−{
527− glm::vec3 result = lhs;
528− result.x *= rhs;
529− result.y *= rhs;
530− result.z *= rhs;
531− return result;
532−}
533−
534514 // XXXBHG - this code is not yet working. This is here to help Jeffery debug getAvatarHeadLookatDirection()
535515 // The code will draw a yellow line from the avatar's position to the origin,
536516 // It also attempts to draw a cyan line from the avatar to 2 meters in front of the avatar in the direction