59 lines
1.2 KiB
Markdown
59 lines
1.2 KiB
Markdown
[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
|
||
|
||
*Defined in [src/collision/Distance.ts:86](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Distance.ts#L86)*
|
||
|
||
___
|
||
|
||
### indexA
|
||
|
||
• **indexA**: *number[]* = []
|
||
|
||
*Defined in [src/collision/Distance.ts:84](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Distance.ts#L84)*
|
||
|
||
___
|
||
|
||
### indexB
|
||
|
||
• **indexB**: *number[]* = []
|
||
|
||
*Defined in [src/collision/Distance.ts:85](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Distance.ts#L85)*
|
||
|
||
___
|
||
|
||
### metric
|
||
|
||
• **metric**: *number* = 0
|
||
|
||
*Defined in [src/collision/Distance.ts:83](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Distance.ts#L83)*
|