class_docstr: Affine transformation class
  
  Parameters
  ----------
  matrix : array-like | None
      4x4 array to use for the transform.
docstr: Set the perspective
  
  Parameters
  ----------
  fov : float
      Field of view.
  aspect : float
      Aspect ratio.
  near : float
      Near location.
  far : float
      Far location.
docstr_tok: ["Set","the","perspective","Parameters","--","--","--","--","--","fov",":","float","Field","of","view",".","aspect",":","float","Aspect","ratio",".","near",":","float","Near","location",".","far",":","float","Far","location","."]
code: def set_perspective(self, fov, aspect, near, far):
      """Set the perspective
  
      Parameters
      ----------
      fov : float
          Field of view.
      aspect : float
          Aspect ratio.
      near : float
          Near location.
      far : float
          Far location.
      """
      self.matrix = transforms.perspective(fov, aspect, near, far)
  
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 17 for calling the MatrixTransform obj's underlying member method code with example usage: obj.set_perspective(fov, aspect, near, far) without return types