class_docstr: Transform performing only scale and translate, in that order.
  
  Parameters
  ----------
  scale : array-like
      Scale factors for X, Y, Z axes.
  translate : array-like
      Scale factors for X, Y, Z axes.
code: def __init__(self, scale=None, translate=None):
      super(STTransform, self).__init__()
  
      self._scale = np.ones(4, dtype=np.float32)
      self._translate = np.zeros(4, dtype=np.float32)
  
      s = (
          (1.0, 1.0, 1.0, 1.0)
          if scale is None
          else as_vec4(scale, default=(1.0, 1.0, 1.0, 1.0))
      )
      t = (
          (0.0, 0.0, 0.0, 0.0)
          if translate is None
          else as_vec4(translate, default=(0.0, 0.0, 0.0, 0.0))
      )
      self._set_st(s, t)
      self._update_shaders()
  
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 1 to create a new STTransform object from inherited base classes: BaseTransform with example: obj = STTransform(scale, translate)