internal int FindTwist(double[] p, double[,] matr, out bool qrev) { double[] q = PGeom.ApplyMatrixToTwist(matr, p); qrev = false; for (int i = 0; i < Twists.Length; i++) { if (PGeom.TwistsEqual(q, Twists[i], out qrev)) { return(i); } } throw new Exception("Can't fing twist"); }