Exemplo n.º 1
0
 public SnapToGrid(ref SnapToGrid e)
 {
     this.fieldWidth = e.fieldWidth;
     this.coefSnap   = e.coefSnap;
     this.deltaSnap  = e.deltaSnap;
     this.snapType   = e.snapType;
     this.snapPoint  = e.snapPoint;
 }
Exemplo n.º 2
0
 public SnapToGrid()
 {
     this.fieldWidth = 1f;
     this.coefSnap   = 0.2f;
     this.deltaSnap  = this.fieldWidth * this.coefSnap;
     this.snapType   = SnapToGrid.SnapTypes.Relative;
     this.snapPoint  = new PointF();
 }