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