Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PyMesh/PyMesh
/ __init__
Method
__init__
python/pymesh/misc/quaternion.py:15–17 ·
view source on GitHub ↗
(self, quat=[1, 0, 0, 0])
Source
from the content-addressed store, hash-verified
13
""
"
14
15
def
__init__(self, quat=[1, 0, 0, 0]):
16
self.__quat = np.array(quat, dtype=np.float)
17
self.normalize()
18
19
@classmethod
20
def
fromAxisAngle(cls, axis, angle):
Callers
nothing calls this directly
Calls
1
normalize
Method · 0.95
Tested by
no test coverage detected