FT_FloorFix() private method

private FT_FloorFix ( IntPtr a ) : IntPtr
a System.IntPtr
return System.IntPtr
Esempio n. 1
0
 public static Fixed16Dot16 FloorFix(Fixed16Dot16 a)
 {
     return(Fixed16Dot16.FromRawValue((int)FT.FT_FloorFix((IntPtr)a.Value)));
 }
Esempio n. 2
0
 /// <summary>
 /// A very simple function used to compute the floor function of a 16.16 fixed number.
 /// </summary>
 /// <remarks>This is a native FreeType function.</remarks>
 /// <returns>The result of ‘a &amp; -0x10000’.</returns>
 public Fixed16Dot16 FloorFix()
 {
     //TODO does the P/Invoke overhead make this slower than re-implementing in C#? Test it
     return(FromRawValue((int)FT.FT_FloorFix((IntPtr)this.Value)));
 }