math
Type Aliases
Position
Type declaration
x
y
Defined in
tmp/commons/src/lib/utils/math.ts:4
Functions
affineFromPoints()
Parameters
• p1: Position
• p2: Position
Returns
Function
Parameters
• x: number
Returns
number
Defined in
tmp/commons/src/lib/utils/math.ts:5
distance()
Parameters
• a: Position
• b: Position
Returns
number
Defined in
tmp/commons/src/lib/utils/math.ts:12
getDistance()
Parameters
• a: Position
• b: Position
Returns
number
Defined in
tmp/commons/src/lib/utils/math.ts:16
lerp()
Parameters
• start: number
• end: number
• alpha: number
Returns
number