added matrix3 and matrix4 and quaternion, set functions as inline