Esempio n. 1
0
 public Face(KiloImageProp prop, double pieceAngle, string color) :
     base(prop, pieceAngle, color)
 {
     PolarInputs = new Tuple <double, double>[] { new Tuple <double, double>(prop.LongFaceDist, pieceAngle),
                                                  new Tuple <double, double>(prop.ShortFaceDist, pieceAngle - KiloImageProp.LARGEANGLE / 2),
                                                  new Tuple <double, double>(0, 0),
                                                  new Tuple <double, double>(prop.ShortFaceDist, pieceAngle + KiloImageProp.LARGEANGLE / 2) };
 }
Esempio n. 2
0
 public Side(KiloImageProp prop, double pieceAngle, string color, int position) :
     base(prop, pieceAngle, color)
 {
     PolarInputs = new Tuple <double, double>[] { new Tuple <double, double>(prop.LongFaceDist, pieceAngle),
                                                  new Tuple <double, double>(prop.LongSideDist, pieceAngle),
                                                  new Tuple <double, double>(prop.ShortSideDist, pieceAngle + (position * KiloImageProp.LARGEANGLE / 2)),
                                                  new Tuple <double, double>(prop.ShortFaceDist, pieceAngle + (position * KiloImageProp.LARGEANGLE / 2)) };
 }
Esempio n. 3
0
 public Corner(KiloImageProp properties, int pieceNum)
 {
     _properties  = properties;
     _centerAngle = KiloImageProp.LARGEANGLE * (pieceNum + 0.5);
     SetStickers(pieceNum);
 }
Esempio n. 4
0
 public Sticker(KiloImageProp prop, double angle, string color)
 {
     _center = prop.Center;
     Color   = color;
 }