Byte4

struct Byte4 : System.ValueType, Microsoft.Xna.Framework.Graphics.PackedVector.IPackedVector<UInt32>, IPackedVector, System.IEquatable<Byte4>

Packed vector type containing four 8-bit unsigned integer values, ranging from 0 to 255.

uint PackedValue

Directly gets or sets the packed representation of the value.

Value:The packed representation of the value.
bool op_Inequality(Byte4 a, Byte4 b)

Compares the current instance of a class to another instance to determine whether they are different.

Parameters:
  • a (Microsoft.Xna.Framework.Graphics.PackedVector.Byte4) – The object to the left of the equality operator.
  • b (Microsoft.Xna.Framework.Graphics.PackedVector.Byte4) – The object to the right of the equality operator.
Returns:

true if the objects are different; false otherwise.

bool op_Equality(Byte4 a, Byte4 b)

Compares the current instance of a class to another instance to determine whether they are the same.

Parameters:
  • a (Microsoft.Xna.Framework.Graphics.PackedVector.Byte4) – The object to the left of the equality operator.
  • b (Microsoft.Xna.Framework.Graphics.PackedVector.Byte4) – The object to the right of the equality operator.
Returns:

true if the objects are the same; false otherwise.

bool Equals(System.Object obj)

Returns a value that indicates whether the current instance is equal to a specified object.

Parameters:
  • obj (System.Object) – The object with which to make the comparison.
Returns:

true if the current instance is equal to the specified object; false otherwise.

bool Equals(Byte4 other)

Returns a value that indicates whether the current instance is equal to a specified object.

Parameters:
  • other (Microsoft.Xna.Framework.Graphics.PackedVector.Byte4) – The object with which to make the comparison.
Returns:

true if the current instance is equal to the specified object; false otherwise.

int GetHashCode()

Gets the hash code for the current instance.

Returns:Hash code for the instance.
string ToString()

Returns a string representation of the current instance.

Returns:String that represents the object.
Vector4 ToVector4()

Expands the packed representation into a Vector4.

Returns:The expanded vector.