path-tangents

npm version stability-stable npm minzipped size dependencies types Conventional Commits styled with prettier linted with eslint license

Compute tangents for a path of 3D points.

paypal coinbase twitter

Installation

npm install path-tangents

Usage

import pathTangents from "path-tangents";

const isClosed = true;
const tangents = pathTangents(path, isClosed);

API

Functions

pathTangents(path, [isClosed])Array.<vec3>

Compute tangents for a path of 3D points.

Typedefs

vec3 : Array.<number>

pathTangents(path, [isClosed]) ⇒ Array.<vec3>

Compute tangents for a path of 3D points.

Kind: global function

Param Type Default Description
path Array.<vec3> Array of 3D points [x, y, z].
[isClosed] boolean false Specify if the path is closed.

vec3 : Array.<number>

Kind: global typedef

License

MIT. See license file.