public int Perpendicular() { if (AxisUtils.Opposite(this.alongAxis) == Axis.X) { return(point.X); } return(point.Y); }
public void SetPerpendicular(int value) { var axis = AxisUtils.Opposite(this.alongAxis); if (axis == Axis.X) { point.X = value; } else { point.Y = value; } }