public bool Change(PointF Begin_in, PointF End_in, List <OpticObject> FigureList) { foreach (OpticObject index in FigureList) { if ((index.Intersect(Begin_in, End_in) && (!index.Equals(this)))) { return(false); } } if ((!ClientSize.IsVisible(Begin_in)) || (!ClientSize.IsVisible(End_in))) { return(false); } Calc_Begin = End_in; Calc_End = Begin_in; Begin = Begin_in; End = End_in; vector = new Vectors(Begin, End); return(true); }
public float Scalar(Vectors vec_in) { return(vec_in.X * X + vec_in.Y * Y); }
public Vectors(Vectors obj) { X = obj.Get_X; Y = obj.Get_Y; }