private void Rotate(Facelet facelet, double angle)
 {
     var faceletsToRotate = _facelets.Where(f => f.IsSameLayer(facelet)).ToList();
      faceletsToRotate.Rotate(facelet.Normal, facelet.CubieCenter, angle);
 }
 public void RotateTwice(Facelet facelet)
 {
     Rotate(facelet, 180);
 }
 public void RotateFaceClockwise(Facelet facelet)
 {
     Rotate(facelet, 90);
 }
 public void RotateFaceCounterClockwise(Facelet facelet)
 {
     Rotate(facelet, -90);
 }
示例#5
0
 public FaceletState(Facelet facelet)
 {
     _facelet = facelet;
      _normal = facelet.Normal;
      _up = facelet.Up;
      _position = facelet.Position;
      _cubieCenter = facelet.CubieCenter;
 }