pyorc.CrossSection.rotate_translate#

CrossSection.rotate_translate(angle: Optional[float] = None, xoff: float = 0.0, yoff: float = 0.0, zoff: float = 0.0)[source]#

Rotate and translate cross section to match config.

Parameters:
  • angle (float, optional) – Rotation angle in radians (anti-clockwise) around the center of the bounding box

  • xoff (float, optional) – Translation distance in x direction in m.

  • yoff (float, optional) – Translation distance in y direction in m.

  • zoff (float, optional) – Translation distance in z direction in m.

Returns:

New transformed cross section instance.

Return type:

CrossSection