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; }
public SnapToGrid() { this.fieldWidth = 1f; this.coefSnap = 0.2f; this.deltaSnap = this.fieldWidth * this.coefSnap; this.snapType = SnapToGrid.SnapTypes.Relative; this.snapPoint = new PointF(); }