예제 #1
0
        public Int16 y; // absolute y coord.

        #endregion Fields

        #region Methods

        //public void operator +(TPoint other)
        //{
        //    x += other.x;
        //    y += other.y;
        //}
        //void operator /(int divisor, int a)
        //{
        //    x /= divisor;
        //    y /= divisor;
        //}
        public void add(TPoint point)
        {
            this.x = (Int16)(this.x + point.x);
            this.y = (Int16)(this.y + point.y);
        }
예제 #2
0
        //public void operator +(TPoint other)
        //{
        //    x += other.x;
        //    y += other.y;
        //}
        //void operator /(int divisor, int a)
        //{
        //    x /= divisor;
        //    y /= divisor;
        //}

        public void add(TPoint point)
        {
            this.x = (Int16)(this.x + point.x);
            this.y = (Int16)(this.y + point.y);
        }