# Dot

### Description

Picks [items](../../../items) based on dot product of two specified vectors.

On top of common parameters that are listed above this test following parameters.

#### Parameters

| Name   | Description           |
| ------ | --------------------- |
| Line A | Line of first vector  |
| Line B | Line of second vector |

The are two ways of declaring these lines

#### Line modes

| Name       | Description                                                                                                                         |
| ---------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| Rotation   | In this case selected object's Transform.forward vector is used. You can use querier, item or custom key value as specified object. |
| Two points | In this case you specify vector start and end points. You can use querier, item or custom key value for start and end points.       |

### Example

In the picture below dot test is used to score [items](../../../items) with preference to those that are in from of querier.

<figure><img src="https://2203000093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGOxTM7Aj9oiVaIINrEkE%2Fuploads%2F0xBXWzMEiHcqA7iKm0QV%2FEQ%20tests%20dot.png?alt=media&#x26;token=469f5b11-19cf-4d26-8ee7-ba1f89a433e4" alt=""><figcaption></figcaption></figure>

To achieve this effect set Test Purpose to "Score Only". Set Line A mode to "Rotation" and value to "Querier". Then set Line B mode to "Two points" and set start point to "Querier" and end point to "Item".

[Items](../../../items) in front of querier have have more green color to them which means that they have more weight which is also shown in debug.

{% hint style="info" %}
For more information about querier visit [EQS Tester](../../../useful-components/eqs-tester) tab.
{% endhint %}
