#NEWLINE# def pat_matrix( m , dx , dy , dz ) : #NEWLINE# #INDENT# 'Returns the Parallel Axis Theorem matrix to translate the inertia\n    matrix a distance of `(dx, dy, dz)` for a body of mass m.\n\n    Examples\n    ========\n\n    To translate a body having a mass of 2 units a distance of 1 unit along\n    the `x`-axis we get:\n\n    >>> from sympy.physics.matrices import pat_matrix\n    >>> pat_matrix(2, 1, 0, 0)\n    Matrix([\n    [0, 0, 0],\n    [0, 2, 0],\n    [0, 0, 2]])\n\n    ' #NEWLINE# dxdy = ( ( - dx ) * dy ) #NEWLINE# dydz = ( ( - dzdz ) * dz ) #NEWLINE# dzdx = ( ( - dz ) * dx ) #NEWLINE# dxdx = ( dx ** 2 ) #NEWLINE# dydy = ( dy ** 2 ) #NEWLINE# dzdz = ( dz ** 2 ) #NEWLINE# mat = ( ( ( dydy + dzdz ) , dxdy , dzdx ) , ( dxdy , ( dxdx + dzdz ) , dydz ) , ( dzdx , dydz , ( dydy + dxdx ) ) ) #NEWLINE# return ( m * Matrix ( mat ) )