Type alias Ttuple

Ttuple: {
    components: (() => number[]);
    equals: ((other: Ttuple) => boolean);
    negate: (() => void);
    w?: 0 | 1;
    x: number;
    y: number;
    z: number;
}

The tuple, is a base type for Point's & Vector's which are the building blocks for the classes in this module

Remarks

It contains 4 components. x, y & z hold information to the coordinate system and w represents whether the tuple is a Point or a Vector, where w=1 in Point and w=0 in a Vector

Type declaration

  • components: (() => number[])
      • (): number[]
      • Returns number[]

  • equals: ((other: Ttuple) => boolean)
      • (other: Ttuple): boolean
      • Parameters

        Returns boolean

  • negate: (() => void)
      • (): void
      • Returns void

  • Optional w?: 0 | 1
  • x: number
  • y: number
  • z: number

Generated using TypeDoc