public Rectangle Rect(Model.Location l) { if (l.EmptyTop()) { return(new Rectangle(l.LLX, l.LLY, l.URX, l.URY)); } if (l.EmptyLow()) { return(new Rectangle(l.Left, _dims.MaxY - l.Bottom, l.Right > 0 ? l.Right : (_dims.MaxX + l.Right), _dims.MaxY - l.Top)); } return(null); }
public double?Ury(Model.Location l) { if (l.EmptyTop()) { return(l.URY); } if (l.EmptyLow()) { return(l.Top >= 0 ? (_dims.MaxY - l.Top) : (l.Top * -1)); } return(null); }
public double?Lly(Model.Location l) { if (l.EmptyTop()) { return(l.LLY); } if (l.EmptyLow()) { return(l.Bottom >= 0 ? (_dims.MaxY - l.Bottom) : (l.Bottom * -1)); } return(null); }
public double?Urx(Model.Location l) { if (l.EmptyTop()) { return(l.URX); } if (l.EmptyLow()) { return(l.Right >= 0 ? l.Right : (_dims.MaxX + l.Right)); } return(null); }
public double?Llx(Model.Location l) { if (l.EmptyTop()) { return(l.LLX); } if (l.EmptyLow()) { return(l.Left >= 0 ? l.Left : (_dims.MaxX + l.Left)); } return(null); }