From 5ae34629d22d16ac1cb627565624317ee4a5d586 Mon Sep 17 00:00:00 2001 From: wuhanstudio Date: Mon, 11 Mar 2024 19:40:20 +0000 Subject: [PATCH] [Question 3] Use @ symble --- Question 3.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Question 3.ipynb b/Question 3.ipynb index f244828..9aeb5ca 100644 --- a/Question 3.ipynb +++ b/Question 3.ipynb @@ -81,7 +81,7 @@ " [0, 0, 1]], dtype=np.float64)\n", "\n", " # Combine the translation and rotation into a single transformation matrix\n", - " rotation_matrix = np.dot(np.dot(translation_back, rotation), translation_to_origin)\n", + " rotation_matrix = translation_back @ rotation @ translation_to_origin\n", " \n", " return rotation_matrix" ] @@ -179,7 +179,7 @@ "id": "06417b95", "metadata": {}, "source": [ - "This is one common mistake." + "This is one common **mistake**." ] }, {