MCPcopy
hub / github.com/tum-pbs/PhiFlow / vec_normalize

Function vec_normalize

phi/geom/_functions.py:13–14  ·  view source on GitHub ↗
(x, epsilon=None, allow_infinite=False, allow_zero=False)

Source from the content-addressed store, hash-verified

11
12
13def vec_normalize(x, epsilon=None, allow_infinite=False, allow_zero=False):
14 return normalize(x, 'vector', epsilon, allow_infinite=allow_infinite, allow_zero=allow_zero)
15
16
17def vec_length(x, eps=None):

Callers 12

build_surface_meshMethod · 0.85
_closest_surfaceMethod · 0.85
transform_with_splineFunction · 0.85
normalsMethod · 0.85
vertex_normalsMethod · 0.85
build_facesFunction · 0.85
normal_from_slopeFunction · 0.85
closest_points_on_linesFunction · 0.85
closest_normal_vectorFunction · 0.85
orthogonal_vectorFunction · 0.85

Calls 1

normalizeFunction · 0.90

Tested by

no test coverage detected