Lines Matching defs:length
86 float length;
88 Segment (void) : index(-1), length(-1.0f) {}
89 Segment (int index_, float length_) : index(index_), length(length_) {}
92 inline std::vector<float> lengths (const std::vector<Segment>& segments) { return members(segments, &Segment::length); }
120 * length and the requirement that the additional segments be placed
125 * verifyFractionalSpacingMultiple(). A negative value in length means that
128 * i.e. all segments had same length.
170 // Divide segments to two different groups based on length.
181 if (de::abs(seg.length - segmentsA[0].length) < epsilon)
183 else if (segmentsB.empty() || de::abs(seg.length - segmentsB[0].length) < epsilon)
187 log << tcu::TestLog::Message << "Failure: couldn't divide segments to 2 groups by length; "
188 << "e.g. segment of length " << seg.length << " isn't approximately equal to either "
189 << segmentsA[0].length << " or " << segmentsB[0].length << tcu::TestLog::EndMessage
197 // All segments should be of equal length.
200 log << tcu::TestLog::Message << "Failure: clamped and final tessellation level are equal, but not all segments are of equal length." << tcu::TestLog::EndMessage
206 if (segmentsA.empty() || segmentsB.empty()) // All segments have same length. This is ok.
208 *pOutAdditionalSegmentLength = (segments.size() == 1 ? -1.0f : segments[0].length);
215 log << tcu::TestLog::Message << "Failure: when dividing the segments to 2 groups by length, neither of the two groups has exactly 2 or 0 segments in it" << tcu::TestLog::EndMessage
231 if (segmentsB[0].length > segmentsA[0].length + 0.001f)
241 if (segmentsB[0].length > segmentsA[0].length)
255 *pOutAdditionalSegmentLength = segmentsB[0].length;
259 *pOutAdditionalSegmentLocation = segmentsB[0].length < segmentsA[0].length - 0.001f ? de::min(segmentsB[0].index, segmentsB[1].index)
337 log << tcu::TestLog::Message << "Failure: additional segment length isn't monotonically decreasing with the fraction <n> - <f>, among edges with same final tessellation level" << tcu::TestLog::EndMessage