mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 19:46:21 +08:00
Stylistic change
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user