private void AddMatrixEntry(int i, int x, int y) { double theta = Trig.Theta(x, y); CircleEntry entry = new CircleEntry(x, y, theta); m_Matrices[i, y + m_Radius, x + m_Radius] = entry; }
//-------------------------------------------------------------------------------------------------- // Public, private or otherwise, everything below this line is for implementation or debugging ONLY //-------------------------------------------------------------------------------------------------- private void GenerateBaseMatrix( ) { for (int y = -m_Radius; y < m_Radius + 1; y++) { for (int x = -m_Radius; x < m_Radius + 1; x++) { double theta = Trig.Theta(x, y); OctantEntry entry = new OctantEntry(x, y, theta); m_Matrix[y + m_Radius, x + m_Radius] = entry; } } }