private void InitSnapToGrid()
 {
     this.snapToGrid              = new SnapToGrid();
     this.snapToGrid.FieldWidth   = 32f;
     this.snapToGrid.SnapType     = SnapToGrid.SnapTypes.Relative;
     this.snapToGrid.SnapRelative = 0.2f;
 }
Example #2
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;
 }
Example #3
0
 public SnapToGrid(ref SnapToGrid e)
 {
     fieldWidth = e.fieldWidth;
     coefSnap   = e.coefSnap;
     deltaSnap  = e.deltaSnap;
     snapType   = e.snapType;
     snapPoint  = e.snapPoint;
 }