pitch yaw and roll faq?

i have try this formula to make yaw and pitch in 3d program… how can i roll the object?

yaw

void orientMe(float ang)
{
lx = sin(ang);
lz = -cos(ang);
}

pitch

void orientMe(float ang)
{
ly = sin(ang);
lz = -cos(ang);
}

roll???

You might find this useful.