Tuples: { add: ((a,
b) => XYZ); distance: ((a,
b) => number); fromCannon: ((value) => XYZ | XYZW); normalize: ((tuple) => XYZ); rgbColour255: ((r,
g,
b) => RGB); rgbColourHex: ((hexString) => RGB); scale: ((tuple,
amount) => XYZ); scaleClamped: ((colour,
amount) => RGB | RGBA); toVec3: ((tuple) => vec3); } = ... Type declaration
add: ((a, b) => XYZ)
distance: ((a, b) => number)
- (a, b): number
Returns number
fromCannon: ((value) => XYZ | XYZW)
normalize: ((tuple) => XYZ)
rgbColour255: ((r, g, b) => RGB)
- (r, g, b): RGB
Parameters
- r: number
- g: number
- b: number
Returns RGB
rgbColourHex: ((hexString) => RGB)
scale: ((tuple, amount) => XYZ)
- (tuple, amount): XYZ
Returns XYZ
scaleClamped: ((colour, amount) => RGB | RGBA)
toVec3: ((tuple) => vec3)
- (tuple): vec3
Returns vec3
Calculates the distance between two 3-tuples