Back to index

extremetuxracer  0.5beta
Functions
stuff.h File Reference
#include "ppgltk/alg/vec3d.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

pp::Vec3d projectIntoPlane (const pp::Vec3d nml, const pp::Vec3d v)
void getTimeComponents (float time, int &minutes, int &seconds, int &hundredths)
float getClockTime ()

Function Documentation

float getClockTime ( )

Definition at line 44 of file stuff.cpp.

{
    return SDL_GetTicks()/1000.0;
}

Here is the caller graph for this function:

void getTimeComponents ( float  time,
int &  minutes,
int &  seconds,
int &  hundredths 
)

Definition at line 33 of file stuff.cpp.

{
    minutes = (int) (time / 60);
    seconds = ((int) time) % 60;
    hundredths = ((int) (time * 100 + 0.5) ) % 100;
}

Here is the caller graph for this function:

pp::Vec3d projectIntoPlane ( const pp::Vec3d  nml,
const pp::Vec3d  v 
)

Definition at line 27 of file stuff.cpp.

{
       return v-nml*v*nml;
}

Here is the caller graph for this function: