HighMap library (C++)
Loading...
Searching...
No Matches
hmap::Segment2D Struct Reference

2D Directed line segment with metadata. More...

#include <bvh.hpp>

Public Member Functions

constexpr AABB2D bounds (float padding=0.f) const noexcept
constexpr glm::vec2 dir () const noexcept
constexpr float len_sq () const noexcept

Public Attributes

glm::vec2 p0 {0.f}
glm::vec2 p1 {0.f}
float v0 {0.f}
float v1 {0.f}
float s0 {0.f}
float s1 {0.f}
size_t k0 {0}
size_t k1 {0}
uint32_t path_index {0}
uint32_t id {0}
glm::vec2 d {0.f}
float inv_len_sq {0.f}

Detailed Description

2D Directed line segment with metadata.

Member Function Documentation

◆ bounds()

AABB2D hmap::Segment2D::bounds ( float padding = 0.f) const
inlineconstexprnoexcept

◆ dir()

glm::vec2 hmap::Segment2D::dir ( ) const
inlineconstexprnoexcept

◆ len_sq()

float hmap::Segment2D::len_sq ( ) const
inlineconstexprnoexcept

Member Data Documentation

◆ p0

glm::vec2 hmap::Segment2D::p0 {0.f}

◆ p1

glm::vec2 hmap::Segment2D::p1 {0.f}

◆ v0

float hmap::Segment2D::v0 {0.f}

◆ v1

float hmap::Segment2D::v1 {0.f}

◆ s0

float hmap::Segment2D::s0 {0.f}

◆ s1

float hmap::Segment2D::s1 {0.f}

◆ k0

size_t hmap::Segment2D::k0 {0}

◆ k1

size_t hmap::Segment2D::k1 {0}

◆ path_index

uint32_t hmap::Segment2D::path_index {0}

◆ id

uint32_t hmap::Segment2D::id {0}

◆ d

glm::vec2 hmap::Segment2D::d {0.f}

◆ inv_len_sq

float hmap::Segment2D::inv_len_sq {0.f}

The documentation for this struct was generated from the following file:
  • HighMap/include/highmap/geometry/bvh.hpp