UnityEditor.SnapEdge.ApplyOffset C# (CSharp) Method

ApplyOffset() private method

private ApplyOffset ( Vector2 offset, bool windowMove ) : void
offset Vector2
windowMove bool
return void
        internal void ApplyOffset(Vector2 offset, bool windowMove)
        {
            offset = ((this.dir != EdgeDir.Left) && (this.dir != EdgeDir.Right)) ? new Vector2(offset.y, offset.x) : offset;
            if (windowMove)
            {
                this.pos += offset.x;
            }
            else
            {
                this.pos = offset.x + this.startDragPos;
            }
            this.start += offset.y;
            this.end += offset.y;
        }