Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including ebabel-distance with all npm packages installed. Try it out:

var ebabelDistance = require("ebabel-distance")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

ebabel-distance v1.1.2

Return the distance in 3D space from point "a" x, y, and z coordinates to point "b" x, y, and z coordinates.

ebabel-distance

Build Status

Return the distance in 3D space from point "i" x, y, and z coordinates to point "j" x, y, and z coordinates.

Module install and usage in your game

Install

npm i --save ebabel-distance

Usage

const distance = require('ebabel-distance');
const i = [-4, 10, 3];
const j = [2, 3, 8];

const result = distance(i, j);

Development of this module

Fork this repository on Github, git clone your repository, checkout the develop branch, and when you are done, submit a pull request from your repository develop branch to this repository develop branch.

  • fork repository on github.com
  • git clone 'fork repository'
  • git checkout -b develop

First step when developing

npm install

Run linting and unit tests

npm test

An html coverage report is to be found in the coverage folder.

Generate documentation

npm run jsdoc

The generated documentation is to be found in the docs folder.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free