@hbsnow/move-on-coords
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

move-on-coords

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

Build Status

Install

yarn add @hbsnow/move-on-coords

Usage

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 戻す座標の桁数

Readme

Keywords

none

Package Sidebar

Install

npm i @hbsnow/move-on-coords

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

5.13 kB

Total Files

5

Last publish

Collaborators

  • hbsnow