From 4f4b13de8b37eb12b400b2c734542c19f7bee6f6 Mon Sep 17 00:00:00 2001 From: Jeffrey Wardman Date: Wed, 8 May 2024 15:30:07 +1000 Subject: [PATCH] use numpy --- vedo/transformations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vedo/transformations.py b/vedo/transformations.py index 01fdedef..978021f0 100644 --- a/vedo/transformations.py +++ b/vedo/transformations.py @@ -423,7 +423,7 @@ def rotate(self, angle, axis=(1, 0, 0), point=(0, 0, 0), rad=False) -> Self: ``` ![](https://vedo.embl.es/images/feats/rotate_axis.png) """ - if all(axis == 0): + if np.all(axis == 0): return self if not angle: return self