# true-wind

> True Wind Calculator

Latest version **0.0.2** (published 2015-01-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install true-wind
pnpm add true-wind
yarn add true-wind
bun add true-wind
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2015-01-21 |
| First published | 2015-01-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Kai Curry |
| Maintainers | kaicurry |
| Keywords | wind, boats, sailboats, calculator |

## Links

- npm: https://www.npmjs.com/package/true-wind
- Repository: https://github.com/cape-io/true-wind
- Issues: https://github.com/cape-io/true-wind/issues
- npm.io page: https://npm.io/package/true-wind

## Dependencies (1)

- [mathjs](https://npm.io/package/mathjs.md) 1.x

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads
- [@modern-js/plugin-swc](https://npm.io/package/@modern-js/plugin-swc.md) — 3.4K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2015-01-21
- 0.0.1 — 2015-01-21

## README

# True Wind Calculator

Calculate true wind direction speed from vessel speed, apparent wind direction and speed.

## truewind(options)

The first argument is an options object.
{speed: 6.5, heading: 200, awd: 350, aws: 5, awa: 150}

* `speed` - Vessel Speed
* `heading` - Vessel True Heading
* `awd` - Apparent Wind Direction (0-360) (relative to true north)
* `awa` - Apparent Wind Angle (0-360) (relative to bow) **Overrides `awd` and `heading` options.**
* `aws` - Apparent Wind Speed (relative to the boat). _Units must match `speed` option._

### Returns {}

Each value is rounded to nearest hundredth.

* `twa` - True Wind Angle
* `twd` - True Wind Direction (Requires `heading` and `awd` input.)
* `twsr` - True Wind Speed as a ratio to `speed` input.
* `tws` - True Wind Speed in units as sent to function.

```javascript
var truewind = require('truewind');

var ops = {
  speed: 6.5, heading: 200, awd: 350, aws: 5
};

var res = truewind(ops); // { twa: 167, twd: 367, twsr: 1.71, tws: 11.11 }

```

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