Struct NormalizedShort4
- Namespace
- Microsoft.Xna.Framework.Graphics.PackedVector
- Assembly
- MonoGame.Framework.dll
Packed vector type containing four 16-bit signed normalized values, ranging from −1 to 1.
public struct NormalizedShort4 : IPackedVector<ulong>, IPackedVector, IEquatable<NormalizedShort4>
- Implements
- Inherited Members
Constructors
NormalizedShort4(Vector4)
Initializes a new instance of this structure.
public NormalizedShort4(Vector4 vector)
Parameters
NormalizedShort4(float, float, float, float)
Initializes a new instance of this structure.
public NormalizedShort4(float x, float y, float z, float w)
Parameters
xfloatThe initial x-component value for this structure.
yfloatThe initial y-component value for this structure.
zfloatThe initial z-component value for this structure.
wfloatThe initial 2-component value for this structure.
Properties
PackedValue
Directly gets or sets the packed representation of the value.
public ulong PackedValue { get; set; }
Property Value
Methods
Equals(NormalizedShort4)
public bool Equals(NormalizedShort4 other)
Parameters
otherNormalizedShort4
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
ToVector4()
Expands the packed representation into a Vector4.
public Vector4 ToVector4()
Returns
Operators
operator ==(NormalizedShort4, NormalizedShort4)
Returns a value that indicates whether the two values are equal.
public static bool operator ==(NormalizedShort4 a, NormalizedShort4 b)
Parameters
aNormalizedShort4The value on the left of the equality operator.
bNormalizedShort4The value on the right of the equality operator.
Returns
- bool
true if the two values are equal; otherwise, false.
operator !=(NormalizedShort4, NormalizedShort4)
Returns a value that indicates whether the two value are not equal.
public static bool operator !=(NormalizedShort4 a, NormalizedShort4 b)
Parameters
aNormalizedShort4The value on the left of the inequality operator.
bNormalizedShort4The value on the right of the inequality operator.
Returns
- bool
true if the two value are not equal; otherwise, false.