Ejemplo n.º 1
0
 /// <summary>
 /// Converts the <see cref="NormalizedInt3"/> instance to a <see cref="Vector3"/> instance.
 /// </summary>
 /// <returns>The <see cref="Vector3"/> instance which was created.</returns>
 public Vector3 ToVector3()
 {
     return(new Vector3(
                PackedVectorUtils.UnpackNormalizedSigned(PackingMask, X),
                PackedVectorUtils.UnpackNormalizedSigned(PackingMask, Y),
                PackedVectorUtils.UnpackNormalizedSigned(PackingMask, Z)));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Converts the <see cref="NormalizedSByte1"/> instance to a <see cref="Single"/> instance.
 /// </summary>
 /// <returns>The <see cref="Single"/> instance which was created.</returns>
 public Single ToSingle()
 {
     return(PackedVectorUtils.UnpackNormalizedSigned(PackingMask, X));
 }