42 return this->first == other.first && this->second == other.second &&
43 std::fabs(this->t - other.t) <=
44 std::numeric_limits<double>::epsilon();
49 return !(*
this == other);
103 std::vector<TriangleClipVertex>& result)
noexcept;
Basic geometry classes for Cesium.
std::variant< int, InterpolatedVertex > TriangleClipVertex
A vertex resulting from clipping a triangle against a threshold.
void clipTriangleAtAxisAlignedThreshold(double threshold, bool keepAbove, int i0, int i1, int i2, double u0, double u1, double u2, std::vector< TriangleClipVertex > &result) noexcept
Splits a 2D triangle at given axis-aligned threshold value and returns the resulting polygon on a giv...
A structure describing a vertex that results from interpolating two other vertices.
constexpr bool operator!=(const InterpolatedVertex &other) const noexcept
The inverse of InterpolatedVertex::operator==.
double t
The fraction of the distance from first to second at which to interpolate.
constexpr bool operator==(const InterpolatedVertex &other) const noexcept
Compares this InterpolatedVertex against another.
int first
The index of the first vertex to interpolate between.
int second
The index of the second vertex to interpolate between.