2021-04-16 17:10:15 +02:00
|
|
|
|
[Planck.js API Doc](../README.md) › [Globals](../globals.md) › [SimplexCache](simplexcache.md)
|
|
|
|
|
|
|
|
|
|
|
|
# Class: SimplexCache
|
|
|
|
|
|
|
|
|
|
|
|
Used to warm start Distance. Set count to zero on first call.
|
|
|
|
|
|
|
|
|
|
|
|
**`prop`** {number} metric length or area
|
|
|
|
|
|
|
|
|
|
|
|
**`prop`** {array} indexA vertices on shape A
|
|
|
|
|
|
|
|
|
|
|
|
**`prop`** {array} indexB vertices on shape B
|
|
|
|
|
|
|
|
|
|
|
|
**`prop`** {number} count
|
|
|
|
|
|
|
|
|
|
|
|
## Hierarchy
|
|
|
|
|
|
|
|
|
|
|
|
* **SimplexCache**
|
|
|
|
|
|
|
|
|
|
|
|
## Index
|
|
|
|
|
|
|
|
|
|
|
|
### Properties
|
|
|
|
|
|
|
|
|
|
|
|
* [count](simplexcache.md#count)
|
|
|
|
|
|
* [indexA](simplexcache.md#indexa)
|
|
|
|
|
|
* [indexB](simplexcache.md#indexb)
|
|
|
|
|
|
* [metric](simplexcache.md#metric)
|
|
|
|
|
|
|
|
|
|
|
|
## Properties
|
|
|
|
|
|
|
|
|
|
|
|
### count
|
|
|
|
|
|
|
|
|
|
|
|
• **count**: *number* = 0
|
|
|
|
|
|
|
2021-05-11 18:30:36 -07:00
|
|
|
|
*Defined in [src/collision/Distance.ts:86](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Distance.ts#L86)*
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
|
|
|
### indexA
|
|
|
|
|
|
|
|
|
|
|
|
• **indexA**: *number[]* = []
|
|
|
|
|
|
|
2021-05-11 18:30:36 -07:00
|
|
|
|
*Defined in [src/collision/Distance.ts:84](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Distance.ts#L84)*
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
|
|
|
### indexB
|
|
|
|
|
|
|
|
|
|
|
|
• **indexB**: *number[]* = []
|
|
|
|
|
|
|
2021-05-11 18:30:36 -07:00
|
|
|
|
*Defined in [src/collision/Distance.ts:85](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Distance.ts#L85)*
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
|
|
|
### metric
|
|
|
|
|
|
|
|
|
|
|
|
• **metric**: *number* = 0
|
|
|
|
|
|
|
2021-05-11 18:30:36 -07:00
|
|
|
|
*Defined in [src/collision/Distance.ts:83](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Distance.ts#L83)*
|