Example #1
0
        public int Perpendicular()
        {
            if (AxisUtils.Opposite(this.alongAxis) == Axis.X)
            {
                return(point.X);
            }

            return(point.Y);
        }
Example #2
0
        public void SetPerpendicular(int value)
        {
            var axis = AxisUtils.Opposite(this.alongAxis);

            if (axis == Axis.X)
            {
                point.X = value;
            }
            else
            {
                point.Y = value;
            }
        }