Show / Hide Table of Contents

Class Vector4UByte

Inheritance
System.Object
Vector4UByte
Namespace: VRageMath
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
public byte W
Field Value
Type Description
System.Byte

X

Declaration
public byte X
Field Value
Type Description
System.Byte

Y

Declaration
public byte Y
Field Value
Type Description
System.Byte

Z

Declaration
public byte Z
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
Type Description
Vector4UByte

Round(Vector3)

Declaration
public static Vector4UByte Round(Vector3 vec)
Parameters
Type Name Description
Vector3 vec
Returns
Type Description
Vector4UByte

Round(Vector4)

Declaration
public static Vector4UByte Round(Vector4 vec)
Parameters
Type Name Description
Vector4 vec
Returns
Type Description
Vector4UByte

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾