Auios.Rectangle 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Auios.Rectangle --version 1.0.1                
NuGet\Install-Package Auios.Rectangle -Version 1.0.1                
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.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Auios.Rectangle --version 1.0.1                
#r "nuget: Auios.Rectangle, 1.0.1"                
#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.1

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


namespace Auios.Rectangle
    public class Rectangle
        public float X;
        public float Y;
        public float Width;
        public float Height;
        public float Top => Y;
        public float Bottom => Y + Height;
        public float Left => X;
        public float Right => X + Width;
        public float HalfWidth => Width * 0.5f;
        public float HalfHeight => Height * 0.5f;
        public float CenterX => X + HalfWidth;
        public 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 493 10/20/2022
1.0.1 3,150 10/31/2020
1.0.0 606 10/31/2020