[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",
"\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**."
]
},
{