MCPcopy
hub / github.com/tum-pbs/PhiFlow / rotated

Method rotated

phi/geom/_geom_ops.py:122–124  ·  view source on GitHub ↗
(self, angle)

Source from the content-addressed store, hash-verified

120 return self.shifted(center - self.center)
121
122 def rotated(self, angle):
123 pivot = self.center
124 return GeometryStack(math.map(lambda g: rotate(g, angle, pivot), self.geometries, dims=object))
125
126 def __getitem__(self, item):
127 selected = self.geometries[slicing_dict(self, item)]

Callers

nothing calls this directly

Calls 2

GeometryStackClass · 0.85
rotateFunction · 0.85

Tested by

no test coverage detected