Skip to content

VRageMath.Vector3UByte

Morten Aune Lyrstad edited this page Apr 16, 2022 · 41 revisions

IndexNamespace Index

Vector3UByte Struct

public struct Vector3UByte

Namespace: VRageMath
Assembly: VRage.Math.dll

Fields

static EqualityComparer Comparer

static Vector3UByte Zero

byte X

byte Y

byte Z

Constructors

Vector3UByte(byte x, byte y, byte z)

Vector3UByte(Vector3I vec)

Methods

static Vector3 Denormalize(Vector3UByte vec, float range)

Unpacks Vector3 from Vector3UByte, scales vector from (0, 255) to (-range, range)

static Vector3UByte Floor(Vector3 vec)

static bool IsMiddle(Vector3UByte vec)

Returns true when all components are 127

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";

static Vector3UByte Round(Vector3 vec)

bool Equals(object obj)

int GetHashCode()

int LengthSquared()

string ToString()

Clone this wiki locally