示例#1
0
 def Orienter(self):
     if self.asAxisAngle:
         return spv.AxisOrienter(self.Angle, self.Axis)
     else:
         return spv.QuaternionOrienter(*self.Q)
示例#2
0
def rotation3_axis_angle(axis, angle):
    return sp.diag(
        spv.AxisOrienter(
            angle, axis[0] * ODOM.i + axis[1] * ODOM.j +
            axis[2] * ODOM.k).rotation_matrix(ODOM), 1).T