_coords[5*Q + 4] = 1 - q[0] - q[1];
_coords[5*R + 4] = 1 - r[0] - r[1];
- resetNearZeroCoordinates();
+ resetNearZeroCoordinates();
// initialise rest of data
preCalculateDoubleProducts();
// Double and triple product calculations
// ----------------------------------------------------------------------------------
- void resetNearZeroCoordinates();
+ void resetNearZeroCoordinates();
bool areDoubleProductsConsistent(const TriSegment seg) const;
const double TransformedTriangle::TRIPLE_PRODUCT_ANGLE_THRESHOLD = 0.1;
-
- // after transformation to the U-space, coordinates are inaccurate
- // small variations around zero should not be taken into account
- void TransformedTriangle::resetNearZeroCoordinates()
- {
- for (int i=0; i<15; i++)
- if (fabs(_coords[i])<TransformedTriangle::MACH_EPS*20.0) _coords[i]=0.0;
- }
-
+ // after transformation to the U-space, coordinates are inaccurate
+ // small variations around zero should not be taken into account
+ void TransformedTriangle::resetNearZeroCoordinates()
+ {
+ for (int i=0; i<15; i++)
+ if (fabs(_coords[i])<TransformedTriangle::MACH_EPS*20.0) _coords[i]=0.0;
+ }
+
// ----------------------------------------------------------------------------------
// Double and triple product calculations
// ----------------------------------------------------------------------------------