Variable TuplesConst

Tuples: {
    add: (a: XYZ, b: XYZ) => XYZ;
    distance: (a: XYZ, b: XYZ) => number;
    fromCannon: (value: Quaternion | Vec3) => XYZ | XYZW;
    normalize: (tuple: number[] | XYZ | RGB) => XYZ;
    rgbColour255: (r: number, g: number, b: number) => RGB;
    rgbColourHex: (hexString: string) => RGB;
    scale: (tuple: number[] | XYZ | RGB | RGBA, amount: number) => XYZ;
    scaleClamped: (colour: RGB | RGBA, amount: number) => RGB | RGBA;
    toVec3: (tuple: XYZ) => vec3;
} = ...

Type declaration

  • add: (a: XYZ, b: XYZ) => XYZ
  • distance: (a: XYZ, b: XYZ) => number
  • fromCannon: (value: Quaternion | Vec3) => XYZ | XYZW
  • normalize: (tuple: number[] | XYZ | RGB) => XYZ
  • rgbColour255: (r: number, g: number, b: number) => RGB
  • rgbColourHex: (hexString: string) => RGB
  • scale: (tuple: number[] | XYZ | RGB | RGBA, amount: number) => XYZ
  • scaleClamped: (colour: RGB | RGBA, amount: number) => RGB | RGBA
  • toVec3: (tuple: XYZ) => vec3