(x, y, z)
return np.diag([x, y, z, 1.])
Return a scaling matrix.
    
    Arguments:
      * x, y, z: the scaling coefficients in each direction.
      
    Returns:
      * S: the 4x4 projection matrix.
Return a scaling matrix.
    
    Arguments:
      * x, y, z: the scaling coefficients in each direction.
      
    Returns:
      * S: the 4x4 projection matrix.
Return a scaling matrix . Arguments : * x y z : the scaling coefficients in each direction . Returns : * S : the 4x4 projection matrix .
def scale_matrix(x, y, z):
    """Return a scaling matrix.
    
    Arguments:
      * x, y, z: the scaling coefficients in each direction.
      
    Returns:
      * S: the 4x4 projection matrix.
      
    """
    return np.diag([x, y, z, 1.])
def scale_matrix ( x , y , z ) : return np . diag ( [ x , y , z , 1. ] )