Stylistic change

This commit is contained in:
Grant Sanderson
2023-08-15 20:40:24 -07:00
parent c8cf83eedf
commit 13d4ab1eb0

View File

@ -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(