Auios.Rectangle 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Auios.Rectangle --version 1.0.0
NuGet\Install-Package Auios.Rectangle -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Auios.Rectangle" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Auios.Rectangle --version 1.0.0
#r "nuget: Auios.Rectangle, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Auios.Rectangle as a Cake Addin
#addin nuget:?package=Auios.Rectangle&version=1.0.0

// Install Auios.Rectangle as a Cake Tool
#tool nuget:?package=Auios.Rectangle&version=1.0.0


public struct Rectangle
    public readonly float X;
    public readonly float Y;
    public readonly float Width;
    public readonly float Height;
    public readonly float Top => Y;
    public readonly float Bottom => Y + Height;
    public readonly float Left => X;
    public readonly float Right => X + Width;
    public readonly float HalfWidth => Width * 0.5f;
    public readonly float HalfHeight => Height * 0.5f;
    public readonly float CenterX => X + HalfWidth;
    public readonly float CenterY => Y + HalfHeight;

    public Rectangle(float x, float y, float width, float height)
        X = x;
        Y = y;
        Width = width;
        Height = height;

    public bool Contains(float x, float y)
        if (x < Left || x > Right) return false;
        if (y < Top || y > Bottom) return false;
        return true;
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Auios.Rectangle:

Package Downloads

Generic QuadTree algorithm inspired by Leonidovia's Ultimate QuadTree.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 490 10/20/2022
1.0.1 3,042 10/31/2020
1.0.0 601 10/31/2020