---
title: "normalize"
canonical: "https://help.vicon.com/space/ShogunPost121/1253736816/normalize"
format: markdown
---
# Description

Normalizes and returns a vector. Normalizing a vector is the process of making the vector "unit-length", or have a length of 1.

## Functional area

Math

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `normalize vector` |

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `vector` | vector | yes | The vector to normalize. |

### Flags

None

## Return value

vector

Returns a vector of length 1.0.

## Examples

```plaintext
// Normalize a vector
vector $vec = << 30, 60, 90 >>;
$vec = `normalize $vec`;
print $vec;
```

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [cross](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736892)
- [dot](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736972)
- [getAngleTo](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737805)
- [getLength](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737337)
- [setLength](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736892)