Struct barycentric_t¶
Defined in File barycentric.hpp
Nested Relationships¶
Nested Types¶
Struct Documentation¶
-
struct barycentric_t¶
Represents a barycentric coordinate in a triangle.
Public Functions
-
constexpr barycentric_t() noexcept = default¶
-
constexpr barycentric_t(const barycentric_t&) noexcept = default¶
-
constexpr barycentric_t &operator=(const barycentric_t&) noexcept = default¶
-
inline constexpr operator bool() const noexcept¶
-
inline constexpr bool operator!() const noexcept¶
-
template<typename T>
inline auto operator()(const T &a, const T &b, const T &c) const noexcept¶ Computes the interpolated triangle value.
- Parameters:
a – triangle’s attribute 1
b – triangle’s attribute 2
c – triangle’s attribute 3
-
inline triangle_point_t operator()(const mesh::triangle_t &tri) const noexcept¶
Computes the interpolated position, (normalized) normal and uv of a triangle.
- Parameters:
tri – triangle
-
struct triangle_point_t¶
Convenience structure for interpolating triangle vertex data using the barycentric coordinate.
-
constexpr barycentric_t() noexcept = default¶