getW method

  1. @override
double getW(
  1. int index
)
override

Returns the w component of the item at the given index.

Implementation

@override
double getW(int index) {
		num w = this.data!.array[ index * this.data!.stride + this.offset + 3 ];
		if ( this.normalized ) w = MathUtils.denormalize( w, this.array );
		return w.toDouble();
}