# Vector
Represents a two-dimensional vector.

{/* Do not edit this file. It is automatically generated by API Documenter. */}

## Vector interface

Represents a two-dimensional vector.

**Signature:**

```typescript
interface Vector
```

## Remarks

Used for positions, sizes, scales, and other two-dimensional values

## Example

```ts
const position: Vector = { x: 100, y: 200 };
const scale: Vector = { x: 2, y: 2 };
```

## Properties

<table>
  <thead>
    <tr>
      <th>
        Property
      </th>

      <th>
        Modifiers
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        [x](/en/creator-api/values/vector/x)
      </td>

      <td />

      <td>
        number
      </td>

      <td>
        X coordinate or horizontal component
      </td>
    </tr>

    <tr>
      <td>
        [y](/en/creator-api/values/vector/y)
      </td>

      <td />

      <td>
        number
      </td>

      <td>
        Y coordinate or vertical component
      </td>
    </tr>
  </tbody>
</table>
