Class Vector4UByte
Inheritance
System.Object
Vector4UByte
Assembly: VRage.Math.dll
Syntax
public sealed class Vector4UByte : ValueType
Constructors
Vector4UByte(Byte, Byte, Byte, Byte)
Declaration
public Vector4UByte(byte x, byte y, byte z, byte w)
Parameters
Type |
Name |
Description |
System.Byte |
x |
|
System.Byte |
y |
|
System.Byte |
z |
|
System.Byte |
w |
|
Fields
W
Declaration
Field Value
Type |
Description |
System.Byte |
|
X
Declaration
Field Value
Type |
Description |
System.Byte |
|
Y
Declaration
Field Value
Type |
Description |
System.Byte |
|
Z
Declaration
Field Value
Type |
Description |
System.Byte |
|
Properties
Item[Int32]
Declaration
public byte this[int index] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Type |
Description |
System.Byte |
|
Methods
Normalize(Vector3, Single)
Normalizes Vector3 into Vector4UByte, scales vector from (-range, range) to (0, 255)
Declaration
public static Vector4UByte Normalize(Vector3 vec, float range)
Parameters
Type |
Name |
Description |
Vector3 |
vec |
|
System.Single |
range |
|
Returns
Round(Vector3)
Declaration
public static Vector4UByte Round(Vector3 vec)
Parameters
Returns
Round(Vector4)
Declaration
public static Vector4UByte Round(Vector4 vec)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|