---
title: "normalize"
canonical: "https://help.vicon.com/space/Shogun112/31229033/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

|  |
| --- |
| `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/Shogun112/pages/31229933)
- [dot](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31237314)
- [getAngleTo](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31227998)
- [getLength](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31228807)
- [setLength](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31229933)