> For the complete documentation index, see [llms.txt](https://renownedgames.gitbook.io/ai-tree/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://renownedgames.gitbook.io/ai-tree/environment-query-system/useful-objects/environment-query/tests/dot.md).

# Dot

### Description

Picks [items](/ai-tree/environment-query-system/items.md) 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](/ai-tree/environment-query-system/items.md) 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&amp;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](/ai-tree/environment-query-system/items.md) 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](/ai-tree/environment-query-system/useful-components/eqs-tester.md) tab.
{% endhint %}
