Ignore:
Timestamp:
07/31/15 20:25:22 (10 years ago)
Author:
epyon
Message:
  • math library work
  • glm only referenced in math/common.hh
  • still a lot work to do, but its WURF
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sdl/sdl_audio.cc

    r453 r454  
    7575                        if ( relative != vec3() )
    7676                        {
    77                                 angle = math::degrees( -glm::orientedAngle( m_forward, glm::normalize( relative ), m_up ) );
    78                                 distance = glm::clamp( 20.0f * glm::length( relative ), 0.0f, 255.0f );
     77                                angle = math::degrees( -math::oriented_angle( m_forward, math::normalize( relative ), m_up ) );
     78                                distance = math::clamp( 20.0f * math::length( relative ), 0.0f, 255.0f );
    7979                        }
    8080                        if ( angle < 0.0f ) angle += 360.0f;
Note: See TracChangeset for help on using the changeset viewer.