Aller au contenu

math

Ce contenu n’est pas encore disponible dans votre langue.

Type Aliases

Position

type Position: object;

Type declaration

x
x: number;
y
y: number;

Defined in

tmp/commons/src/lib/utils/math.ts:4

Functions

affineFromPoints()

function affineFromPoints(p1, p2): (x) => number

Parameters

p1: Position

p2: Position

Returns

Function

Parameters

x: number

Returns

number

Defined in

tmp/commons/src/lib/utils/math.ts:5


distance()

function distance(a, b): number

Parameters

a: Position

b: Position

Returns

number

Defined in

tmp/commons/src/lib/utils/math.ts:12


getDistance()

function getDistance(a, b): number

Parameters

a: Position

b: Position

Returns

number

Defined in

tmp/commons/src/lib/utils/math.ts:16


lerp()

function lerp(
start,
end,
alpha): number

Parameters

start: number

end: number

alpha: number

Returns

number

Defined in

tmp/commons/src/lib/utils/math.ts:1