- Preparing search index...
- The search index is not available
x-tracer
Ttuple
: { components
: (() => number[]); equals
: ((other
: Ttuple) => boolean); negate
: (() => void); w
?: 0 | 1; x
: number; y
: number; z
: number; }
Type declaration
-
components: (() => number[])
-
- (): number[]
-
Returns number[]
-
equals: ((other: Ttuple) => boolean)
-
- (other: Ttuple): boolean
-
Returns boolean
-
negate: (() => void)
-
Optional 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