不多说了,直接贴代码:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using FP; namespace FP { class TrigonometricFunction { protected static int TAB_N = 256; //定义查表的点数 protected static FPoint PI = new FPoint(3.14159265f); //定义圆周率值 protected static List SIN_TAB = new List(); protected static TrigonometricFunction _Instance = null; protected static TrigonometricFunction Instance() { if (_Instance == null) { _Instance = new TrigonometricFunction(); } return _Instance; } protected TrigonometricFunction() { SIN_TAB.Add(0); SIN_TAB.Add(245); SI