Ignore:
Timestamp:
Jun 23, 2012, 12:46:39 PM (11 years ago)
Author:
sam
Message:

core: replace usage of sin() or std::sin() with lol::sin() where appropriate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/tutorial/03_fractal.cpp

    r1512 r1513  
    1414
    1515#include <cstring>
    16 #include <cmath>
    1716
    1817#include "core.h"
     
    117116            double f = (double)i / PALETTE_STEP;
    118117
    119             double r = 0.5 * sin(f * 0.27 + 2.0) + 0.5;
    120             double g = 0.5 * sin(f * 0.17 - 1.8) + 0.5;
    121             double b = 0.5 * sin(f * 0.21 - 2.6) + 0.5;
     118            double r = 0.5 * lol::sin(f * 0.27 + 2.0) + 0.5;
     119            double g = 0.5 * lol::sin(f * 0.17 - 1.8) + 0.5;
     120            double b = 0.5 * lol::sin(f * 0.21 - 2.6) + 0.5;
    122121
    123122            if (f < 7.0)
Note: See TracChangeset for help on using the changeset viewer.