modify to support basic arithmetic for float3 type