Inch 2 Meter Converter
853lab 853lab Library update 2mo ago

Inch 2 Meter Converter

Convert meters, centimeters and inches

favorite3favorites
thumb_up5upvotes
hard_drive 0 MB folder 12 files build Engine v25
open_in_new View on sbox.game

About This Package

PLEASE GIVE thumbs-up EMOJI to this Issue to make Official support for metric units:
How to use?

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).ToIn();
Log.Info($"new Position:{LocalPosition}");

var distance = Vector3.Direction(pointA, pointB);
Log.Info($"distance(M):{distance.ToM()}");

Extension

using Sonic853.InchConverterLib.Extensions;

var meter = inchFloat.Meter;
Log.Info($"m:{meter}");
inchFloat.Meter = 1; // 1 meter
Log.Info($"in:{inchFloat}");

var meterVec2 = inchVec2.Meter;
Log.Info($"m:{meterVec2}");
inchVec2.Meter = new Vector2(1); // 1 meter
Log.Info($"in:{inchVec2}");

var meterVec3 = inchVec3.Meter;
Log.Info($"m:{meterVec3}");
inchVec3.Meter = new Vector3(1); // 1 meter
Log.Info($"in:{inchVec3}");

Log.Info($"m:{gameObject.LocalPositionMeter}");
gameObject.WorldPositionMeter = new Vector3(1); // 1 meter
Log.Info($"in:{gameObject.LocalPosition}");

Source code:

Media (6)

No usage statistics available
This package may be new or not widely used yet. Usage data becomes available as more users install and play with the package.
Package ID: thelab.inchconverter
Created: 2024-10-29 14:40 UTC
Updated: 2026-05-09 23:16 UTC
Type: library
Public: Yes
Version: 235172
files: 12
Size: 0.0 MB
Engine Version: 25
Asset Version ID: 235172
Version Created: 2026-05-09 23:16 UTC
Hash: -6216287902170387927
Manifest: Open manifest
Cs Proj Name:
Resources:
Code Package References:
new_releases Latest Update May 9, 2026
Changes on 2026-05-09
235172 May 9, 2026
Changes on 2026-05-09
75692 Oct 29, 2024
Changes on 2024-10-29
75691 Oct 29, 2024
Changes on 2024-10-29
75674 Oct 29, 2024
Changes on 2024-10-29
75661 Oct 29, 2024
Changes on 2024-10-29