TymianekPL / Tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tools

Features:

  • ✨ Power management

Example:

PowerManagement.Set(PowerAction.Shutdown);
  • ✨ Math

Vectors

Vector 3D (float/int) Vector 4D (float/int) Math class

  • Clamp

Clamp value to min and max

Example:

int value = Math.Clamp(value: 120, max: 100, min: 0); // it will return 100
  • Sin

Generate sinusoid wave

Example:

short[] sin = Math.Sin(rate: 500, bufferSize: 2000); // That will generate array with sinusoid values 
  • ✨ Timeout

class to set timeout for action

Constructor arguments: TimeoutTime time

  • Start

Arguments: Action action

start action after timeout without blocking thread

Usage:

Timeout t = new Timeout(new TimeoutTime
{
    Seconds = 10
});
t.Start(() => {
    Console.WriteLine("That will be shown after 20 seconds after calling \"Start\" method!");
} 
Console.WriteLine("That will execure withour timeout!");
  • ✨ MessageBox

Show message box to user

Example:

MessageBox.Show("Hello, world", "My box", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
  • ✨Logger

And many more...

For full list, go to to Tools page

=======

This is development branch. Beta updates will be here.

About


Languages

Language:JavaScript 82.5%Language:C# 15.9%Language:HTML 1.5%Language:CSS 0.1%