Measurements
Type-Safe Measurements Calculations
In One Line
Overview
Package Info
Quick Start
using AceLand.Measurements;
// Create lengths using extension methods
Length height = 1.8.Meters();
Length width = 42.Inches();
Weight playerWeight = 180.Pounds();
Weight itemWeight = 500.Grams();
// Easy unit conversion - no calculations needed
double heightInFeet = height.Feet; // 5.905512 ft
double widthInMeters = width.Meters; // 1.0668 m
double kg = playerWeight.Kilograms; // ~81.64 kg
double oz = itemWeight.Ounces; // ~17.63 oz
// Create area from length multiplication
Area room = width * height;
double areaInSquareMeters = room.SquareMeters; // 1.92024 m²
double areaInSquareFeet = room.SquareFeet; // 20.67 ft²
// Other Calculations
Length h = 3.78.Meters();
Length w = 4.2.Feet();
Length l = 53.45.Inches();
Volume v = h * w * l;Features
Supported Units
Unit Type
Base Unit
Conversion
Calculator
Calculators
Common Usage
Length Units
Area Units
Real-World Examples
Best Practices
Notes
Last updated