Source code for sym.ops.orthographic_camera_cal.lie_group_ops
# -----------------------------------------------------------------------------# This file was autogenerated by symforce from template:# ops/CLASS/lie_group_ops.py.jinja# Do NOT modify by hand.# -----------------------------------------------------------------------------# ruff: noqa: PLR0915, F401, PLW0211, PLR0914from__future__importannotationsimportmathimporttypingasTimportnumpyimportsym
[docs]classLieGroupOps(object):""" Python LieGroupOps implementation for :py:class:`symforce.cam.orthographic_camera_cal.OrthographicCameraCal`. """
[docs]@staticmethoddeffrom_tangent(vec:numpy.ndarray,epsilon:float)->sym.OrthographicCameraCal:# Total ops: 0# Input arraysifvec.shape==(4,):vec=vec.reshape((4,1))elifvec.shape!=(4,1):raiseIndexError("vec is expected to have shape (4, 1) or (4,); instead had shape {}".format(vec.shape))# Intermediate terms (0)# Output terms_res=sym.OrthographicCameraCal.from_storage([vec[0,0],vec[1,0],vec[2,0],vec[3,0]])return_res
[docs]@staticmethoddefretract(a:sym.OrthographicCameraCal,vec:numpy.ndarray,epsilon:float)->sym.OrthographicCameraCal:# Total ops: 4# Input arrays_a=a.dataifvec.shape==(4,):vec=vec.reshape((4,1))elifvec.shape!=(4,1):raiseIndexError("vec is expected to have shape (4, 1) or (4,); instead had shape {}".format(vec.shape))# Intermediate terms (0)# Output terms_res=sym.OrthographicCameraCal.from_storage([_a[0]+vec[0,0],_a[1]+vec[1,0],_a[2]+vec[2,0],_a[3]+vec[3,0]])return_res