# rotate-vector-about-axis

> A helper module that allows you to rotate a vector about an arbitrary axis.

Latest version **1.0.2** (published 2016-04-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install rotate-vector-about-axis
pnpm add rotate-vector-about-axis
yarn add rotate-vector-about-axis
bun add rotate-vector-about-axis
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-04-11 |
| First published | 2016-04-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Eric Arnebäck |
| Maintainers | erkaman |
| Keywords | stackgl, gl, webgl, vector, quat, rotation, axis, gl-vec3, vec3 |

## Links

- npm: https://www.npmjs.com/package/rotate-vector-about-axis
- Repository: https://github.com/Erkaman/rotate-vector-about-axis
- Homepage: https://github.com/Erkaman/rotate-vector-about-axi
- Issues: https://github.com/Erkaman/rotate-vector-about-axis/issues
- npm.io page: https://npm.io/package/rotate-vector-about-axis

## Dependencies (2)

- [gl-quat](https://npm.io/package/gl-quat.md) ^1.0.0
- [gl-vec3](https://npm.io/package/gl-vec3.md) ^1.0.3

## Recent versions

- 1.0.2 (latest) — 2016-04-11
- 1.0.1 — 2016-04-10
- 1.0.0 — 2016-04-10

## README

# rotate-vector-about-axis

A helper module that allows you to rotate a `gl-vec3` about an
arbitrary axis(and not only the x-, y- and z-axes).

## Usage

[![NPM](https://nodei.co/npm/rotate-vector-about-axis.png)](https://www.npmjs.com/package/rotate-vector-about-axis)

### `rotateVectorAboutAxis(v, axis, angle)`

This function returns the vector `v` rotated `angle` radians about the axis
`axis`, where `v` and `axis` are both of the type `gl-vec3`.

---
_Source: https://npm.io/package/rotate-vector-about-axis · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
