Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRageMath.Vector3UByte.Normalize

Malware edited this page Dec 13, 2025 · 17 revisions

DEPRECATION NOTICE

This API documentation is out of date and no longer maintained.

Please visit the new documentation at: https://malforge.github.io/spaceengineers/pbapi

IndexNamespace IndexVector3UByte

Summary

public static Vector3UByte Normalize(Vector3 vec, float range)

Normalizes Vector3 into Vector4UByte, scales vector from (-range, range) to (0, 255). Unsafe for values "range >= any_vec_value / 257";

Returns

Vector3UByte

Parameters

Clone this wiki locally