---
name: "s3d_vector_length"
section: "3"
platform: "linux"
package: "s3d-doc"
version: "0.2.2.1-7"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/s3d_vector_length"
---

# s3d\_vector\_length(3)

calculate length of vector

## NAME

s3d\_vector\_length - calculate length of vector

## SYNOPSIS

```
#include <s3d.h>
```

**float s3d\_vector\_length(const float** *vector***\[\]);**

## DESCRIPTION

Calculates and returns the length of the given vector (which should be of the type float\[3\]). More info on wikipedia http://en.wikipedia.org/wiki/Vector\_(spatial)

## AUTHOR

**Simon Wunderlich**

Author of s3d
