Skip to content

Commit

Permalink
Stylistic change
Browse files Browse the repository at this point in the history
  • Loading branch information
3b1b committed Aug 16, 2023
1 parent c8cf83e commit 13d4ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manimlib/utils/space_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def normalize_along_axis(
) -> np.ndarray:
norms = np.sqrt((array * array).sum(axis))
norms[norms == 0] = 1
return (array.T / norms).T
return array / norms[:, np.newaxis]


def get_unit_normal(
Expand Down

0 comments on commit 13d4ab1

Please sign in to comment.