public CCorrCpts(CPoint frcpt, double dblMoveX, double dblMoveY) { CPoint tocpt = new CPoint(frcpt.ID, frcpt.X + dblMoveX, frcpt.Y + dblMoveY); frcpt.PairCorrCpt = this; tocpt.PairCorrCpt = this; this.intID = frcpt.ID; this.FrCpt = frcpt; this.ToCpt = tocpt; this.pMoveVector = new CMoveVector(frcpt.ID, dblMoveX, dblMoveY); }
public static CMoveVector CalMoveVector(CPoint frcpt, CPoint tocpt) { CMoveVector pMoveVector = new CMoveVector(frcpt.ID, tocpt.X - frcpt.X, tocpt.Y - frcpt.Y); return(pMoveVector); }
public CMoveVector SetMoveVector() { this.pMoveVector = CalMoveVector(this.FrCpt, this.ToCpt); return(this.pMoveVector); }