Changeset 68:4b3a6bfa1c30 in rrlib_geometry


Ignore:
Timestamp:
30.07.2014 15:08:19 (5 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
default
Phase:
public
Message:

Adapted to changes in rrlib_math

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test_geometries.cpp

    r60 r68  
    228228 
    229229      tBezierCurve::tDerivative first(bezier_curve.GetDerivative()); 
    230       tPoint m(p + (first(t).Normalized().Rotated(-M_PI_2) * radius)); 
     230      tPoint m(p + (first(t).Normalized().Rotated(-rrlib::math::cPI_2) * radius)); 
    231231 
    232232      window.SetColor(1); 
     
    265265  tBezierCurve bezier_curve2(tPoint(0.2, 0.1), tPoint(0.5, 0.3), tPoint(0.6, 0.7), tPoint(0.4, 0.9)); 
    266266 
    267   rrlib::math::tAngleDeg angle = -40; 
     267  rrlib::math::tAngleDeg angle(-40); 
    268268  tPoint position = bezier_curve2.CenterOfGravity(); 
    269269  bezier_curve2.Translate(-position); 
Note: See TracChangeset for help on using the changeset viewer.