mindsponge.common.rigids_mul_rigids
- mindsponge.common.rigids_mul_rigids(a, b)[source]
Change rigid
from its local coordinate system to rigid local coordinate system, using rigid rotations and translations.Use the rotations calculated by multiplying rotations of rigid
and rigid as new rotations of rigid .Multiply the translations of rigid
with rotations of rigid , then add translations of rigid . The translations got is new translations of rigid .- Parameters
- Returns
tuple(rots, trans), rigid
changed. Length is 2. Include rots and trans . Data type is constant or Tensor with same shape.
- Supported Platforms:
Ascend
GPU
Examples
>>> import mindsponge >>> a = ((1, 2, 3, 4, 5, 6, 7, 8, 9), (3, 4, 5)) >>> b = ((2, 3, 4, 1, 5, 6, 3, 8, 7), (1, 2, 3)) >>> b1 = mindsponge.common.rigids_mul_rigids(a,b) >>> print(b1) ((13, 37, 37, 31, 85, 88, 49, 133, 139), (17, 36, 55))