Skip to content

WesHaze/Mathly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whazeted.Std.Mathly

Nuget License

A comprehensive collection of numeric extensions for .NET that brings expressive mathematical operations to primitive types.

Features

  • Type-Safe Extensions: Methods for all primitive numeric types
  • Expressive Syntax: Chainable operations that read like natural math
  • Bit Manipulation: Full suite of bitwise operations
  • Mathematical Utilities: Common operations like clamping and rounding
  • Cross-Platform: Supports 32-bit and 64-bit architectures
  • No Dependencies: Pure .NET Standard library

Installation

dotnet add package Whazeted.Std.Mathly

Basic Usage

// Fluent math operations
var result = 5.Add(3).Multiply(2); // (5 + 3) * 2 = 16

// Bit manipulation
var masked = 0b10110011.And(0b00111100); // 0b00110000

// Math utilities
var clamped = 150.Clamp(0, 100); // 100

MIT License - See LICENSE for details.

About

Expressive math syntax

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages