https://github.com/sonic853/sbox-inch-converter
Convert centimeters, meters and inches
https://github.com/sonic853/sbox-inch-converter
sbox
Last synced: about 1 year ago
JSON representation
Convert centimeters, meters and inches
- Host: GitHub
- URL: https://github.com/sonic853/sbox-inch-converter
- Owner: Sonic853
- License: mit
- Created: 2024-10-29T14:50:04.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-29T20:02:30.000Z (over 1 year ago)
- Last Synced: 2025-06-08T08:47:28.173Z (about 1 year ago)
- Topics: sbox
- Language: C#
- Homepage: https://sbox.game/thelab/inchconverter
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# s&box Inch Converter


## How to use?
```CSharp
using Sonic853.InchConverterLib;
var m = InchConverter.InToM(1);
Log.Info($"m:{m}");
var inch = InchConverter.MToIn(1);
Log.Info($"in:{inch}");
Log.Info($"LocalPosition(M):{LocalPosition.ToM()}");
LocalPosition = new Vector3( 1, 1, 1 ).ToIn();
Log.Info($"new Position:{LocalPosition}");
var distance = Vector3.Direction(pointA, pointB);
Log.Info($"distance(M):{distance.ToM()}");
```