MxEngine
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
MxEngine::Vector3Cmp Struct Reference

#include <LODGenerator.h>

Public Member Functions

bool operator() (const Vector3 &v1, const Vector3 &v2) const
 

Static Public Member Functions

static bool EqF (float x, float y)
 
static bool LessF (float x, float y)
 

Static Public Attributes

static float Threshold = 100.0f
 

Detailed Description

This class is used to generate object LODs by comparing vertecies. It is passed as set comparator to filter unique vertecies with some threshold

Warning
TODO: make this class thread-safe and non-static

Member Data Documentation

§ Threshold

float MxEngine::Vector3Cmp::Threshold = 100.0f
inlinestatic

threshold which sets epsilon to ignore. If vec_abs(v1 - v2) == vec(threshold), v1 considered equal to v2


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