tidy3d.Geometry.rotated

Contents

tidy3d.Geometry.rotated#

class rotated#

Bases:

Return a rotated copy of this geometry.

Parameters:
  • angle (float) – Rotation angle (in radians).

  • axis (Union[int, Tuple[float, float, float]]) – Axis of rotation: 0, 1, or 2 for x, y, and z, respectively, or a 3D vector.

Returns:

Rotated copy of this geometry.

Return type:

Geometry

Inherited Common Usage