private void TestCos() { mResult.Append("Testing Cos function\r\n"); for (float x = 0; x < 10f; x += 0.021f) { Check((float)Math.Cos(x), Math2.Cos(x), "Cos: {0} != {1}"); } }
public CPointF GetArcPoint(float t) { float Delta = Gamma * t + Alpha; float x = Distance * (float)Math2.Cos(Delta); float y = Distance * (float)Math2.Sin(Delta); CPointF result = new CPointF(Center.X + x, Center.Y + y); return(result); }