updating to use vecmath instead of gl-matrix