Skip to content

SP5: CoordinateRect needs a Contains() method #2790

@swharden

Description

@swharden

https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5/CoordinateRect.cs should be extended to add methods like:

public bool Contains(Coordinates point)
{
    /* ... */
}

and maybe an overload

public bool Contains(double x, double y)
{
    /* ... */
}

with logic like

return X >= XMin && X <= XMax && Y >= YMin && Y <= YMax;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueThis issue has limited complexity and may be a good start for new contributorsHelp WantedScott won't do this soon, but PRs from the community are welcome!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions