2021-04-16 17:10:15 +02:00
|
|
|
|
[Planck.js API Doc](../README.md) › [Globals](../globals.md) › [SimplexVertex](simplexvertex.md)
|
|
|
|
|
|
|
|
|
|
|
|
# Class: SimplexVertex
|
|
|
|
|
|
|
|
|
|
|
|
## Hierarchy
|
|
|
|
|
|
|
|
|
|
|
|
* **SimplexVertex**
|
|
|
|
|
|
|
|
|
|
|
|
## Index
|
|
|
|
|
|
|
|
|
|
|
|
### Properties
|
|
|
|
|
|
|
|
|
|
|
|
* [a](simplexvertex.md#a)
|
|
|
|
|
|
* [indexA](simplexvertex.md#indexa)
|
|
|
|
|
|
* [indexB](simplexvertex.md#indexb)
|
|
|
|
|
|
* [w](simplexvertex.md#w)
|
|
|
|
|
|
* [wA](simplexvertex.md#wa)
|
|
|
|
|
|
* [wB](simplexvertex.md#wb)
|
|
|
|
|
|
|
|
|
|
|
|
### Methods
|
|
|
|
|
|
|
|
|
|
|
|
* [set](simplexvertex.md#set)
|
|
|
|
|
|
|
|
|
|
|
|
## Properties
|
|
|
|
|
|
|
|
|
|
|
|
### a
|
|
|
|
|
|
|
|
|
|
|
|
• **a**: *number*
|
|
|
|
|
|
|
2021-05-11 18:30:36 -07:00
|
|
|
|
*Defined in [src/collision/Distance.ts:308](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Distance.ts#L308)*
|
2021-05-08 11:13:58 -07:00
|
|
|
|
|
|
|
|
|
|
barycentric coordinate for closest point
|
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:298](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Distance.ts#L298)*
|
2021-05-08 11:13:58 -07:00
|
|
|
|
|
|
|
|
|
|
wA index
|
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:303](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Distance.ts#L303)*
|
2021-05-08 11:13:58 -07:00
|
|
|
|
|
|
|
|
|
|
wB index
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
|
|
|
### w
|
|
|
|
|
|
|
2021-05-02 17:18:33 -07:00
|
|
|
|
• **w**: *[Vec2](vec2.md)* = Vec2.zero()
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
2021-05-11 18:30:36 -07:00
|
|
|
|
*Defined in [src/collision/Distance.ts:306](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Distance.ts#L306)*
|
2021-05-08 11:13:58 -07:00
|
|
|
|
|
|
|
|
|
|
wB - wA;
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
|
|
|
### wA
|
|
|
|
|
|
|
2021-05-02 17:18:33 -07:00
|
|
|
|
• **wA**: *[Vec2](vec2.md)* = Vec2.zero()
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
2021-05-11 18:30:36 -07:00
|
|
|
|
*Defined in [src/collision/Distance.ts:296](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Distance.ts#L296)*
|
2021-05-08 11:13:58 -07:00
|
|
|
|
|
|
|
|
|
|
support point in proxyA
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
|
|
|
### wB
|
|
|
|
|
|
|
2021-05-02 17:18:33 -07:00
|
|
|
|
• **wB**: *[Vec2](vec2.md)* = Vec2.zero()
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
2021-05-11 18:30:36 -07:00
|
|
|
|
*Defined in [src/collision/Distance.ts:301](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Distance.ts#L301)*
|
2021-05-08 11:13:58 -07:00
|
|
|
|
|
|
|
|
|
|
support point in proxyB
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
|
|
|
|
|
## Methods
|
|
|
|
|
|
|
|
|
|
|
|
### set
|
|
|
|
|
|
|
2021-05-11 18:30:36 -07:00
|
|
|
|
▸ **set**(`v`: [SimplexVertex](simplexvertex.md)): *void*
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
2021-05-11 18:30:36 -07:00
|
|
|
|
*Defined in [src/collision/Distance.ts:310](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Distance.ts#L310)*
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
|
|
|
|
|
**Parameters:**
|
|
|
|
|
|
|
|
|
|
|
|
Name | Type |
|
|
|
|
|
|
------ | ------ |
|
2021-05-11 18:30:36 -07:00
|
|
|
|
`v` | [SimplexVertex](simplexvertex.md) |
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
|
|
|
|
|
**Returns:** *void*
|