UNPKG

ts-useful

Version:

Functions for animation, color transitions, ecliptic, bezier, decasteljau, curves, three dimensional curves, smooth scrolling, random range, randomItem, mobius index, vectors, physics vectors, and easing.

11 lines (10 loc) 368 B
import { coordinate } from '../types/coordinate'; import { Coordinate } from '../abstract/coordinate'; export interface IVector extends Coordinate { addForce: (vector: IVector, force: number) => this; normalize: () => void; subForce: (vector: IVector, force: number) => this; magnitude: number; hypotenuse: number; abs: coordinate; }