Exemple #1
0
 /// <summary>
 /// Converts the <see cref="Short3"/> 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.UnpackSigned(PackingMask, X),
                PackedVectorUtils.UnpackSigned(PackingMask, Y),
                PackedVectorUtils.UnpackSigned(PackingMask, Z)));
 }
Exemple #2
0
 /// <summary>
 /// Converts the <see cref="Int1"/> instance to a <see cref="Single"/> instance.
 /// </summary>
 /// <returns>The <see cref="Single"/> instance which was created.</returns>
 public Single ToSingle()
 {
     return(PackedVectorUtils.UnpackSigned(PackingMask, X));
 }