# @hbsnow/move-on-coords

> 始点と終点を結ぶ平面座標線上を指定距離移動したときの座標と残り終点までの距離を求めるライブラリ

Latest version **1.0.3** (published 2019-07-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @hbsnow/move-on-coords
pnpm add @hbsnow/move-on-coords
yarn add @hbsnow/move-on-coords
bun add @hbsnow/move-on-coords
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2019-07-26 |
| First published | 2019-06-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | hbsnow |
| Maintainers | hbsnow |

## Links

- npm: https://www.npmjs.com/package/@hbsnow/move-on-coords
- Repository: https://github.com/hbsnow/move-on-coords
- Homepage: https://github.com/hbsnow/move-on-coords#readme
- Issues: https://github.com/hbsnow/move-on-coords/issues
- npm.io page: https://npm.io/package/@hbsnow/move-on-coords

## Recent versions

- 1.0.3 (latest) — 2019-07-26
- 1.0.2 — 2019-06-10
- 1.0.0 — 2019-06-09
- 0.0.1 — 2019-06-09

## README

# move-on-coords

始点と終点を結ぶ平面座標線上を指定距離移動したときの座標と残り終点までの距離を求めるライブラリ

[![Build Status](https://travis-ci.org/hbsnow/move-on-coords.svg?branch=master)](https://travis-ci.org/hbsnow/move-on-coords)

## Install

```bash
yarn add @hbsnow/move-on-coords
```

## Usage

```js
import { moveOnCoords } from 'move-on-coords'

moveOnCoords([3, 4], [0, 0], 1) // -> { diff: -4, coords: [2.4, 3.2] }
```

## Options

| name  | type   | default | description    |
| ----- | ------ | ------- | -------------- |
| digit | number | 7       | 戻す座標の桁数 |

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