public static extern int GetDeviceCaps(int hDC, int nIndex); private const double c_Cosine30 = 0.866025403784439;