Skip to content

SP5: CoordinateRect needs methods for expanding to include Coordinates #2871

@swharden

Description

@swharden

needs methods to expand to include a point or rectangle, something like

CoordinateRect rect1 = new(-10, 10, -10, 10);

Coordinates coord = new(13. 42);

CoordinateRect rect2 = rect1.Expanded(coord);

notably the values are mutable, so perhaps this could run in place

public struct CoordinateRect : IEquatable<CoordinateRect>
{
public double Left { get; set; }
public double Right { get; set; }
public double Bottom { get; set; }
public double Top { get; set; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueThis issue has limited complexity and may be a good start for new contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions