PlayRho  2.0.0
An interactive physics engine & library.
playrho::d2::Simplex::Cache Struct Reference

Simplex cache. More...

#include <playrho/d2/Simplex.hpp>

Public Attributes

IndexPair3 indices = InvalidIndexPair3
 Indices. More...
 
Real metric = Invalid<Real>
 Metric. 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.

Member Data Documentation

◆ indices

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

Indices.

Collection of index-pairs.

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

◆ metric

Real playrho::d2::Simplex::Cache::metric = Invalid<Real>

Metric.

Metric based on a length or area value of edges.

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


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