コード例 #1
0
 /// <summary>Read a <see cref="NormalizedInt16"/>.</summary>
 /// <param name="reader"></param>
 /// <returns></returns>
 public static NormalizedInt16 ReadNormalizedInt16(this BinaryReader reader)
 {
     return(NormalizedInt16.CreateCoded(reader.ReadInt16()));
 }
コード例 #2
0
 /// <summary>Get the squared value of the input.</summary>
 public static NormalizedInt16 Squared(this NormalizedInt16 value)
 {
     return((NormalizedInt16)(value * value));
 }