3.1.0 • Published 2 months ago

path-tangents v3.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
2 months ago

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

npm.io

Installation

npm install path-tangents

Usage

import pathTangents from "path-tangents";

// const path = ...

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

API

Functions

Typedefs

pathTangents(path, closed) ⇒ TypedArray | Array | Array.<vec3>

Compute tangents for a path of 3D points.

Kind: global function

ParamTypeDefaultDescription
pathTypedArray | Array | Array.<vec3>Simplicial complex geometry positions (eg. new Float32Array([x, y, z, x, y, z, ...])/new Array(x, y, z, x, y, z, ...) or new Array([x, y, z], [x, y, z], ...))
closedbooleanfalseSpecify if the path is closed. If so the last tangent will point to the first point. Otherwise it will follow the previous point.

vec3 : Array.<number>

Kind: global typedef

License

MIT. See license file.

3.1.0

2 months ago

3.0.0

10 months ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.0

6 years ago