예제 #1
0
 protected override void SwapConstraints(int sourceIndex, int destIndex)
 {
     particleIndices.Swap(sourceIndex * 2, destIndex * 2);
     particleIndices.Swap(sourceIndex * 2 + 1, destIndex * 2 + 1);
     restDarbouxVectors.Swap(sourceIndex, destIndex);
     stiffnesses.Swap(sourceIndex, destIndex);
 }
예제 #2
0
 protected override void SwapConstraints(int sourceIndex, int destIndex)
 {
     particleIndices.Swap(sourceIndex * 2, destIndex * 2);
     particleIndices.Swap(sourceIndex * 2 + 1, destIndex * 2 + 1);
     orientationIndices.Swap(sourceIndex, destIndex);
     restLengths.Swap(sourceIndex, destIndex);
     restOrientations.Swap(sourceIndex, destIndex);
     stiffnesses.Swap(sourceIndex, destIndex);
 }