예제 #1
0
		public static DualQuaternion Conjugate(DualQuaternion q)
		{
			return new DualQuaternion(Quaternion.Conjugate(q.real), Quaternion.Conjugate(q.dual));
		}
예제 #2
0
		public static DualQuaternion Multiply(DualQuaternion left, DualQuaternion mid, DualQuaternion right)
		{
			return new DualQuaternion( left.real* mid.real*right.real, left.real*mid.dual*right.real + left.dual*mid.real*right.real);
		}
예제 #3
0
		public static DualQuaternion Add(DualQuaternion left, DualQuaternion right)
		{
			return new DualQuaternion(left.real+ right.real, left.dual+right.dual);
		}
예제 #4
0
 public static DualQuaternion Conjugate(DualQuaternion q)
 {
     return(new DualQuaternion(Quaternion.Conjugate(q.real), Quaternion.Conjugate(q.dual)));
 }
예제 #5
0
 public static DualQuaternion Multiply(DualQuaternion left, DualQuaternion mid, DualQuaternion right)
 {
     return(new DualQuaternion(left.real * mid.real * right.real, left.real * mid.dual * right.real + left.dual * mid.real * right.real));
 }
예제 #6
0
 public static DualQuaternion Add(DualQuaternion left, DualQuaternion right)
 {
     return(new DualQuaternion(left.real + right.real, left.dual + right.dual));
 }