[Question 3] Use @ symble

This commit is contained in:
wuhanstudio 2024-03-11 19:40:20 +00:00
parent 8c78f23f98
commit 5ae34629d2
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@
" [0, 0, 1]], dtype=np.float64)\n", " [0, 0, 1]], dtype=np.float64)\n",
"\n", "\n",
" # Combine the translation and rotation into a single transformation matrix\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", " \n",
" return rotation_matrix" " return rotation_matrix"
] ]
@ -179,7 +179,7 @@
"id": "06417b95", "id": "06417b95",
"metadata": {}, "metadata": {},
"source": [ "source": [
"This is one common mistake." "This is one common **mistake**."
] ]
}, },
{ {