vm_M3Math common numerical operations