Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
normalize
Method · 0.95
check_validity
Method · 0.80
init_boundary_lengths
Method · 0.80
getBoundaryBlurMatrix
Method · 0.80
getCurlNorm
Method · 0.80
getBdLaplacianMatrix
Method · 0.80
compute_edge_lengths
Method · 0.80
generate_end_loops
Method · 0.80
apply_correction
Method · 0.80
apply_correction_to_in_plane_edge
Method · 0.80
apply_correction_to_out_plane_edge
Method · 0.80
apply_z_correction
Method · 0.80
Calls
no outgoing calls
Tested by
15
test_map_vertex_attributes_sphere
Method · 0.64
test_map_vertex_attributes_sphere_box
Method · 0.64
assert_symmetry
Method · 0.64
test_elasticity_tensor
Method · 0.64
test_radial_function
Method · 0.64
test_2D
Method · 0.64
test_function
Function · 0.64
test_function_grad
Function · 0.64
get_edge_length
Method · 0.64
get_triangle_area
Method · 0.64
TEST_F
Function · 0.64
cotan_weight
Method · 0.64