NormalizedShort2 Structure

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Packed vector type containing two 16-bit signed normalized values, ranging from −1 to 1.

Namespace:  Microsoft.Xna.Framework.Graphics.PackedVector
Assembly:  Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)

Syntax

'Declaration
Public Structure NormalizedShort2 _
    Implements IPackedVector(Of UInteger), IPackedVector
public struct NormalizedShort2 : IPackedVector<uint>, 
    IPackedVector

The NormalizedShort2 type exposes the following members.

Constructors

  Name Description
Public method NormalizedShort2(Vector2) Initializes a new instance of the NormalizedShort2 structure.
Public method NormalizedShort2(Single, Single) Initializes a new instance of the NormalizedShort2 structure.

Top

Properties

  Name Description
Public property PackedValue Directly gets or sets the packed representation of the value.

Top

Methods

  Name Description
Public method Equals(Object) Returns a value that indicates whether the current instance is equal to a specified object. (Overrides ValueType.Equals(Object).)
Public method Equals(NormalizedShort2) Returns a value that indicates whether the current instance is equal to a specified object.
Public method GetHashCode Gets the hash code for the current instance. (Overrides ValueType.GetHashCode().)
Public method ToString Returns a string representation of the current instance. (Overrides ValueType.ToString().)
Public method ToVector2 Expands the packed representation to a vector.

Top

Operators

  Name Description
Public operatorStatic member Equality Compares the current instance of a class to another instance to determine whether they are the same.
Public operatorStatic member Inequality Compares the current instance of a class to another instance to determine whether they are different.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IPackedVector.PackFromVector4 Sets the packed representation from a Vector4.
Explicit interface implemetationPrivate method IPackedVector.ToVector4 Expands the packed representation into a Vector4.

Top

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.