![]() |
VOOZH | about |
dotnet add package PowBasics.WinForms --version 0.0.10
NuGet\Install-Package PowBasics.WinForms -Version 0.0.10
<PackageReference Include="PowBasics.WinForms" Version="0.0.10" />
<PackageVersion Include="PowBasics.WinForms" Version="0.0.10" />Directory.Packages.props
<PackageReference Include="PowBasics.WinForms" />Project file
paket add PowBasics.WinForms --version 0.0.10
#r "nuget: PowBasics.WinForms, 0.0.10"
#:package PowBasics.WinForms@0.0.10
#addin nuget:?package=PowBasics.WinForms&version=0.0.10Install as a Cake Addin
#tool nuget:?package=PowBasics.WinForms&version=0.0.10Install as a Cake Tool
This is a collection of utility functions I found I often need in my projects. They are split over 3 packages:
public static class MathUtils
{
// Cap a number between 2 bounds (inclusive)
int Cap(int val, int min, int max);
/*
Compute the minimum number of multiples of b we need to be at least a
Note: this is not the same as integer division.
Integer division: 7 / 3 = 2 (but 2*3=6 doesn't cover/fill 7 completely)
FillingDiv(7, 3) = 3
*/
int FillingDiv(int a, int b);
}
It contains :
It has all the operations you'd expect either as member methods or extension methods. Including:
record Pt(int X, int Y);
record R(int X, int Y, int Width, int Height);
record Sz(int Width, int Height);
record VecPt(double X, double Y);
record VecR(VecPt Min, VecPt Max);
enum Dir { Horiz, Vert }
interface IMarg {
int Top { get; }
int Right { get; }
int Bottom { get; }
int Left { get; }
}
record Marg(int Top, int Right, int Bottom, int Left) : IMarg;
record Pad(int Top, int Right, int Bottom, int Left, int InBetween) : IMarg;
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0-windows7.0 net7.0-windows7.0 is compatible. net8.0-windows net8.0-windows was computed. net9.0-windows net9.0-windows was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on PowBasics.WinForms:
| Package | Downloads |
|---|---|
|
PowRxVar.WinForms
Composable reactive variables |
This package is not used by any popular GitHub repositories.