---
title: "Inch 2 Meter Converter - s&box library"
description: "Convert meters, centimeters and inches"
canonical: "https://sbox.watch/zh-cn/libraries/thelab/inchconverter/"
generated_at: "2026-11-27T17:36:25.452Z"
---

# Inch 2 Meter Converter

Convert meters, centimeters and inches

- 类型: 库
- 标识符: thelab.inchconverter
- 创作者: 853lab
- 规范地址: https://sbox.watch/zh-cn/libraries/thelab/inchconverter/
- Markdown: https://sbox.watch/zh-cn/libraries/thelab/inchconverter/index.md
- sbox.game: https://sbox.game/thelab/inchconverter/
- 生成时间: 2026-11-27T17:36:25.452Z

## 统计

- 24小时热度: +0
- Terry 评分: 65%
- 收藏: 3
- 好评: 5
- 差评: 0
- 更新时间: 2026年5月9日
- 创建时间: 2024年10月29日
- 大小: 28.1 KB
- 文件: 12


## 描述

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:
https://github.com/Sonic853/sbox-inch-converter
