getZ method

num? getZ(
  1. int index
)

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

Implementation

num? getZ(int index) {
  return getAt(index * itemSize + 2);
}