getW method

num? getW(
  1. int index
)

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

Implementation

num? getW(int index) {
  return getAt(index * itemSize + 3);
}