Rg32

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

Packed vector type containing two 16-bit unsigned normalized values ranging from 0 to 1.

uint PackedValue

Gets and sets the packed value.

Vector2 ToVector2()

Gets the packed vector in Vector2 format.

Returns:The packed vector in Vector2 format
bool Equals(System.Object obj)

Compares an object with the packed vector.

Parameters:
  • obj (System.Object) – The object to compare.
Returns:

True if the object is equal to the packed vector.

bool Equals(Rg32 other)

Compares another Rg32 packed vector with the packed vector.

Parameters:
  • other (Microsoft.Xna.Framework.Graphics.PackedVector.Rg32) – The Rg32 packed vector to compare.
Returns:

True if the packed vectors are equal.

string ToString()

Gets a string representation of the packed vector.

Returns:A string representation of the packed vector.
int GetHashCode()

Gets a hash code of the packed vector.

Returns:The hash code for the packed vector.
bool op_Equality(Rg32 lhs, Rg32 rhs)
Parameters:
  • lhs (Microsoft.Xna.Framework.Graphics.PackedVector.Rg32) –
  • rhs (Microsoft.Xna.Framework.Graphics.PackedVector.Rg32) –
bool op_Inequality(Rg32 lhs, Rg32 rhs)
Parameters:
  • lhs (Microsoft.Xna.Framework.Graphics.PackedVector.Rg32) –
  • rhs (Microsoft.Xna.Framework.Graphics.PackedVector.Rg32) –