vector3f: Add functions for mean and max to simplify code elsewhere