class_docstr: Affine transformation class
  
  Parameters
  ----------
  matrix : array-like | None
      4x4 array to use for the transform.
docstr: Set to a 3D transformation matrix that maps points1 onto points2.
  
  Parameters
  ----------
  points1 : array-like, shape (4, 3)
      Four starting 3D coordinates.
  points2 : array-like, shape (4, 3)
      Four ending 3D coordinates.
docstr_tok: ["Set","to","a","3D","transformation","matrix","that","maps","points1","onto","points2",".","Parameters","--","--","--","--","--","points1",":","array-like",",","shape","(","4",",","3",")","Four","starting","3D","coordinates",".","points2",":","array-like",",","shape","(","4",",","3",")","Four","ending","3D","coordinates","."]
code: def set_mapping(self, points1, points2):
      """Set to a 3D transformation matrix that maps points1 onto points2.
  
      Parameters
      ----------
      points1 : array-like, shape (4, 3)
          Four starting 3D coordinates.
      points2 : array-like, shape (4, 3)
          Four ending 3D coordinates.
      """
      # note: need to transpose because util.functions uses opposite
      # of standard linear algebra order.
      self.matrix = transforms.affine_map(points1, points2).T
  
imports: from __future__ import division
  import numpy
  from ...util import transforms
  from ...geometry import Rect
  from ._util import arg_to_vec4, as_vec4
  from .base_transform import BaseTransform
label_desc: Use image node_id 12 for calling the MatrixTransform obj's underlying member method code with example usage: obj.set_mapping(points1, points2) without return types