public void CreateHeuristic() { if (m_errorQuadric == M44d.Zero) { throw new InvalidOperationException("Must call CreateQuadric(...) first"); } m_errorHeuristic = Quadric.ToHeuristic(ErrorQuadric); }
public static Quadric operator +(Quadric lhs, Quadric rhs) { Quadric result = new Quadric(); result.ErrorQuadric = lhs.ErrorQuadric + rhs.ErrorQuadric; result.Normal = lhs.Normal + rhs.Normal; result.ErrorHeuristic = Quadric.ToHeuristic(result.ErrorQuadric); return(result); }
public static Quadric operator +(Quadric lhs, Quadric rhs) { var result = new Quadric { ErrorQuadric = lhs.ErrorQuadric + rhs.ErrorQuadric, Normal = lhs.Normal + rhs.Normal }; result.ErrorHeuristic = ToHeuristic(result.ErrorQuadric); return(result); }