(self, function: Callable[[np.ndarray], np.ndarray], **kwargs)
| 984 | return self.rotate(TAU / 2, axis, **kwargs) |
| 985 | |
| 986 | def apply_function(self, function: Callable[[np.ndarray], np.ndarray], **kwargs) -> Self: |
| 987 | # Default to applying matrix about the origin, not mobjects center |
| 988 | if len(kwargs) == 0: |
| 989 | kwargs["about_point"] = ORIGIN |
| 990 | self.apply_points_function( |
| 991 | lambda points: np.array([function(p) for p in points]), |
| 992 | **kwargs |
| 993 | ) |
| 994 | return self |
| 995 | |
| 996 | def apply_function_to_position(self, function: Callable[[np.ndarray], np.ndarray]) -> Self: |
| 997 | self.move_to(function(self.get_center())) |
no test coverage detected