public RangeF(PositionF upperLeft, PositionF lowerRight) { this.upperLeft = upperLeft; this.lowerRight = lowerRight; toString = String.Empty; UpdateToString(); }
public RangeF(PositionF startPositionF, float width, float height) { upperLeft = startPositionF; lowerRight = new PositionF(startPositionF.X + width, startPositionF.Y + height); toString = String.Empty; UpdateToString(); }
public bool Contains(PositionF PositionF) { return PositionF.X >= upperLeft.X && PositionF.Y < lowerRight.Y && PositionF.X < lowerRight.X && PositionF.Y >= upperLeft.Y; }