GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: Add Line Numbers


use of sin function by deltron
#include <math.h>
#include <iostream.h>

int main(void)
{
    double mydegrees = 45.0f;

    double myradians = (mydegrees * 3.141592653f) / 180.0f;

    double theresult = sin(myradians);

    cout << theresult;

    return 0;

}