mirror of
https://github.com/3b1b/manim.git
synced 2025-07-29 13:03:31 +08:00
Small formating
This commit is contained in:
@ -43,7 +43,10 @@ def quaternion_conjugate(quaternion):
|
||||
def rotate_vector(vector, angle, axis=OUT):
|
||||
quat = quaternion_from_angle_axis(angle, axis)
|
||||
quat_inv = quaternion_conjugate(quat)
|
||||
product = reduce(quaternion_mult, [quat, np.append(0, vector), quat_inv])
|
||||
product = reduce(
|
||||
quaternion_mult,
|
||||
[quat, np.append(0, vector), quat_inv]
|
||||
)
|
||||
return product[1:]
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user