cesium-native 0.44.2
Loading...
Searching...
No Matches
CesiumGeometry::InterpolatedVertex Struct Reference

A structure describing a vertex that results from interpolating two other vertices. More...

#include <CesiumGeometry/clipTriangleAtAxisAlignedThreshold.h>

Public Member Functions

constexpr bool operator== (const InterpolatedVertex &other) const noexcept
 Compares this InterpolatedVertex against another.
 
constexpr bool operator!= (const InterpolatedVertex &other) const noexcept
 The inverse of InterpolatedVertex::operator==.
 

Public Attributes

int first
 The index of the first vertex to interpolate between.
 
int second
 The index of the second vertex to interpolate between.
 
double t
 The fraction of the distance from first to second at which to interpolate.
 

Detailed Description

A structure describing a vertex that results from interpolating two other vertices.

The vertices to interpolate between are given via their indices. This is used as one representation of a vertex in a TriangleClipVertex.

Definition at line 17 of file clipTriangleAtAxisAlignedThreshold.h.

Member Function Documentation

◆ operator!=()

bool CesiumGeometry::InterpolatedVertex::operator!= ( const InterpolatedVertex & other) const
inlineconstexprnoexcept

The inverse of InterpolatedVertex::operator==.

Definition at line 48 of file clipTriangleAtAxisAlignedThreshold.h.

◆ operator==()

bool CesiumGeometry::InterpolatedVertex::operator== ( const InterpolatedVertex & other) const
inlineconstexprnoexcept

Compares this InterpolatedVertex against another.

Two InterpolatedVertex instances are considered equivalent if their first and second fields are equivalent and the difference between their t fields is less than std::numeric_limits<double>::epsilon().

Definition at line 41 of file clipTriangleAtAxisAlignedThreshold.h.

Member Data Documentation

◆ first

int CesiumGeometry::InterpolatedVertex::first

The index of the first vertex to interpolate between.

Definition at line 21 of file clipTriangleAtAxisAlignedThreshold.h.

◆ second

int CesiumGeometry::InterpolatedVertex::second

The index of the second vertex to interpolate between.

Definition at line 26 of file clipTriangleAtAxisAlignedThreshold.h.

◆ t

double CesiumGeometry::InterpolatedVertex::t

The fraction of the distance from first to second at which to interpolate.

Definition at line 32 of file clipTriangleAtAxisAlignedThreshold.h.


The documentation for this struct was generated from the following file: