Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

VRageMath.Vector3UByte.Normalize

Malware edited this page May 4, 2019 · 16 revisions

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