2024-11-23 16:08:24 +03:30
|
|
|
# Class: SimplexCache
|
|
|
|
|
|
|
|
|
|
Used to warm start Distance. Set count to zero on first call.
|
|
|
|
|
|
|
|
|
|
## Constructors
|
|
|
|
|
|
|
|
|
|
### new SimplexCache()
|
|
|
|
|
|
2024-12-20 15:08:27 +03:30
|
|
|
> **new SimplexCache**(): [`SimplexCache`](/api/classes/SimplexCache)
|
2024-11-23 16:08:24 +03:30
|
|
|
|
|
|
|
|
#### Returns
|
|
|
|
|
|
2024-12-20 15:08:27 +03:30
|
|
|
[`SimplexCache`](/api/classes/SimplexCache)
|
2024-11-23 16:08:24 +03:30
|
|
|
|
|
|
|
|
## Properties
|
|
|
|
|
|
|
|
|
|
### count
|
|
|
|
|
|
|
|
|
|
> **count**: `number` = `0`
|
|
|
|
|
|
|
|
|
|
***
|
|
|
|
|
|
|
|
|
|
### indexA
|
|
|
|
|
|
|
|
|
|
> **indexA**: `number`[] = `[]`
|
|
|
|
|
|
|
|
|
|
vertices on shape A
|
|
|
|
|
|
|
|
|
|
***
|
|
|
|
|
|
|
|
|
|
### indexB
|
|
|
|
|
|
|
|
|
|
> **indexB**: `number`[] = `[]`
|
|
|
|
|
|
|
|
|
|
vertices on shape B
|
|
|
|
|
|
|
|
|
|
***
|
|
|
|
|
|
|
|
|
|
### metric
|
|
|
|
|
|
|
|
|
|
> **metric**: `number` = `0`
|
|
|
|
|
|
|
|
|
|
length or area
|
|
|
|
|
|
|
|
|
|
## Methods
|
|
|
|
|
|
|
|
|
|
### recycle()
|
|
|
|
|
|
|
|
|
|
> **recycle**(): `void`
|
|
|
|
|
|
|
|
|
|
#### Returns
|
|
|
|
|
|
|
|
|
|
`void`
|