[Marble-devel] turn the map

Torsten Rahn tackat at t-online.de
Thu Apr 5 14:13:52 UTC 2012



On Donnerstag, 5. April 2012 16:00:58 Bernhard Beschow wrote:
> > additional, i made a smal modification to:
> > MarbleMap::setHeading() to avoid having heading values greater than 360°
> > if(heading > 359)//enz
> >     heading = heading-360;
> > if(heading < -359)//enz
> >     heading = heading+360;

Wouldn't it be more generic to use something like fmod() here?
Currently this code would only cover values up to +-719 deg.

BR,
Torsten



More information about the Marble-devel mailing list