# Vector properties

## dimension

A `number` representing the dimension of the Vector. Equal to `vector.values.length`

```typescript
import { Vector } from 'volts';

const vec3 = new Vector(1,2,3);
vec3.dimension; // 3
```

### signal

{% hint style="info" %}
Only defined for Vectors with dimensions between `1` and `4`
{% endhint %}

```typescript
import { Vector } from 'volts';

const vec3 = new Vector(1,2,3);
vec3.signal; // Reactive VectorSignal(1,2,3)

new Vector(1).signal;       // Reactive scalar
new Vector(1,2).signal;     // Reactive point2d
new Vector(1,2,3).signal;   // Reactive vector
new Vector(1,2,3,4).signal; // Reactive pack4
```

### pointSignal

{% hint style="info" %}
Only defined for 3D Vectors
{% endhint %}

```typescript
import { Vector } from 'volts';

const vec3 = new Vector(1,2,3);
vec3.pointSignal; // Reactive PointSignal(1,2,3)
```

### Vector.components

{% hint style="danger" %}
This is a static property
{% endhint %}

An array containing all keys that a Vector ***might*** contain, in order. Keys capped to 4 dimensions

```typescript
import { Vector } from 'volts';

Vector.components // [ 'x', 'y', 'z', 'w' ]
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tomaspietravallo.gitbook.io/sparkar-volts/volts.vector/vector-properties.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
