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


A Paste by Anonymous
kVector RayProject(kRotator Input, float Speed)
{
    kVector Rot;
    Rot.X = (float)sin(Input.Yaw*piover180)*Speed;
    Rot.Y = (float)sin(-Input.Pitch*piover180)*Speed;
    Rot.Z = (float)cos(Input.Yaw*piover180)*Speed;
    return Rot;
}