> For the complete documentation index, see [llms.txt](https://docs.engagevr.io/developer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.engagevr.io/developer/afx/node-dictionary/variable/vector/vector2.md).

# Vector2

## Build Vector 2

Creates a Vector2 object from constituent parts.

**Inputs:**

<table><thead><tr><th width="154">Name</th><th width="154">Type</th><th>Description</th></tr></thead><tbody><tr><td>X In</td><td>Float</td><td>X value for the Vector2.</td></tr><tr><td>Y In</td><td>Float</td><td>Y value for the Vector2.</td></tr></tbody></table>

**Outputs:**

<table><thead><tr><th width="154">Name</th><th width="154">Type</th><th>Description</th></tr></thead><tbody><tr><td>Output</td><td>Vector2</td><td>The constructed Vector2.</td></tr></tbody></table>

## Get Vector2

Converts a Vector2 component to a Vector2 data type.

**Inputs:**

<table><thead><tr><th width="154">Name</th><th width="154">Type</th><th>Description</th></tr></thead><tbody><tr><td>Vector2 Component</td><td>Vector2 component</td><td>Reference to a Vector2 component.</td></tr></tbody></table>

**Outputs:**

<table><thead><tr><th width="154">Name</th><th width="154">Type</th><th>Description</th></tr></thead><tbody><tr><td>Vector2 Out</td><td>Vector2</td><td>Vector2 object.</td></tr></tbody></table>

## Set Vector2

Set the value of a Vector2 component.

**Inputs:**

<table><thead><tr><th width="154">Name</th><th width="164">Type</th><th>Description</th></tr></thead><tbody><tr><td>Enter</td><td>Flow</td><td>The initiating flow.</td></tr><tr><td>Vector2 Component</td><td>Vector2 Component</td><td>Reference to the Vector2 component for which to set a value.</td></tr><tr><td>Value In</td><td>Vector2 [editable]</td><td>The value to assign to the vector component.</td></tr></tbody></table>

**Outputs:**

<table><thead><tr><th width="154">Name</th><th width="164">Type</th><th>Description</th></tr></thead><tbody><tr><td>Exit</td><td>Flow</td><td>Continuation of the initiating flow.</td></tr><tr><td>Vector2 Out</td><td>Vector2</td><td>Same as <code>Value In</code>.</td></tr></tbody></table>

## Split Vector2

Splits a Vector2 into its constituent parts.

**Inputs:**

<table><thead><tr><th width="154">Name</th><th width="154">Type</th><th>Description</th></tr></thead><tbody><tr><td>Vector2 In</td><td>Vector2</td><td>The Vector2 object to split.</td></tr></tbody></table>

**Outputs:**

<table><thead><tr><th width="154">Name</th><th width="154">Type</th><th>Description</th></tr></thead><tbody><tr><td>X</td><td>Float</td><td>The X component.</td></tr><tr><td>Y</td><td>Float</td><td>The Y component.</td></tr></tbody></table>
