MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::ImGuiMeasurementIndicators::Stipple::Segment Struct Reference

#include <MRImGuiMeasurementIndicators.h>

Public Member Functions

float get (bool end) const
 

Public Attributes

float a = 0
 
float b = 0
 

Member Function Documentation

◆ get()

float MR::ImGuiMeasurementIndicators::Stipple::Segment::get ( bool end) const
inlinenodiscard

Member Data Documentation

◆ a

float MR::ImGuiMeasurementIndicators::Stipple::Segment::a = 0

This is the start and end positions of this segment, from 0 to 1. This is automatically multiplied by patternLength. You must ensure 0 <= a < b <= 1, and if there are multiple segments, that segments[i].b < segments[i + 1].a. The only exception to this is that the b of the last segment can be less than the a of the last segment, as long as it's also less than the a of the first segment. This can help with pattern wraparound.

◆ b

float MR::ImGuiMeasurementIndicators::Stipple::Segment::b = 0

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