MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / norm

Method norm

python/pymesh/misc/quaternion.py:78–82  ·  view source on GitHub ↗

Quaternion norm.

(self)

Source from the content-addressed store, hash-verified

76 return cls(quat)
77
78 def norm(self):
79 """ Quaternion norm.
80 """
81 n = norm(self.__quat)
82 return n
83
84 def normalize(self):
85 """ Normalize quaterion to have length 1.

Callers 15

normalizeMethod · 0.95
check_validityMethod · 0.80
init_boundary_lengthsMethod · 0.80
getBoundaryBlurMatrixMethod · 0.80
getCurlNormMethod · 0.80
getBdLaplacianMatrixMethod · 0.80
compute_edge_lengthsMethod · 0.80
generate_end_loopsMethod · 0.80
apply_correctionMethod · 0.80
apply_z_correctionMethod · 0.80

Calls

no outgoing calls

Tested by 15

assert_symmetryMethod · 0.64
test_radial_functionMethod · 0.64
test_2DMethod · 0.64
test_functionFunction · 0.64
test_function_gradFunction · 0.64
get_edge_lengthMethod · 0.64
get_triangle_areaMethod · 0.64
TEST_FFunction · 0.64
cotan_weightMethod · 0.64