FT_Vector_Polarize() private method

private FT_Vector_Polarize ( SharpFont.FTVector &vec, IntPtr &length, IntPtr &angle ) : void
vec SharpFont.FTVector
length System.IntPtr
angle System.IntPtr
return void
Esempio n. 1
0
        /// <summary>
        /// Compute both the length and angle of a given vector.
        /// </summary>
        /// <param name="length">The vector length.</param>
        /// <param name="angle">The vector angle.</param>
        public void Polarize(out Fixed16Dot16 length, out Fixed16Dot16 angle)
        {
            IntPtr tmpLength, tmpAngle;

            FT.FT_Vector_Polarize(ref this, out tmpLength, out tmpAngle);

            length = Fixed16Dot16.FromRawValue((int)tmpLength);
            angle  = Fixed16Dot16.FromRawValue((int)tmpAngle);
        }
Esempio n. 2
0
 /// <summary>
 /// Compute both the length and angle of a given vector.
 /// </summary>
 /// <param name="length">The vector length.</param>
 /// <param name="angle">The vector angle.</param>
 public void Polarize(out int length, out int angle)
 {
     FT.FT_Vector_Polarize(ref this, out length, out angle);
 }