FT_Vector_From_Polar() private method

private FT_Vector_From_Polar ( SharpFont.FTVector &vec, IntPtr length, IntPtr angle ) : void
vec SharpFont.FTVector
length System.IntPtr
angle System.IntPtr
return void
コード例 #1
0
        /// <summary>
        /// Compute vector coordinates from a length and angle.
        /// </summary>
        /// <param name="length">The vector length.</param>
        /// <param name="angle">The vector angle.</param>
        /// <returns>The address of source vector.</returns>
        public static FTVector FromPolar(int length, int angle)
        {
            FTVector vec;

            FT.FT_Vector_From_Polar(out vec, length, angle);

            return(vec);
        }
コード例 #2
0
ファイル: FTVector.cs プロジェクト: blockspacer/FrankE
        /// <summary>
        /// Compute vector coordinates from a length and angle.
        /// </summary>
        /// <param name="length">The vector length.</param>
        /// <param name="angle">The vector angle.</param>
        /// <returns>The address of source vector.</returns>
        public static FTVector FromPolar(Fixed16Dot16 length, Fixed16Dot16 angle)
        {
            FTVector vec;

            FT.FT_Vector_From_Polar(out vec, (IntPtr)length.Value, (IntPtr)angle.Value);

            return(vec);
        }