frustum functions
matrices functions
minor changes