PlayRho  1.1.0
An Interactive Real-Time-Oriented C++ Physics Engine & Library
playrho::d2::Simplex::Cache Struct Reference

Simplex cache. More...

#include <Simplex.hpp>

Collaboration diagram for playrho::d2::Simplex::Cache:
[legend]

Public Attributes

Real metric = GetInvalid<Real>()
 Metric. More...
 
IndexPair3 indices = InvalidIndexPair3
 Indices. More...
 

Detailed Description

Simplex cache.

Used to warm start Distance. Caches particular information from a simplex: a related metric and up-to 3 index pairs.

Note
This data structure is 12-bytes large.

Member Data Documentation

◆ indices

IndexPair3 playrho::d2::Simplex::Cache::indices = InvalidIndexPair3

Indices.

Collection of index-pairs.

Referenced by playrho::d2::Distance().

◆ metric

Real playrho::d2::Simplex::Cache::metric = GetInvalid<Real>()

Metric.

Metric based on a length or area value of edges.

Referenced by playrho::d2::Distance().


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