getComponent method

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

Implementation

@override
double getComponent(int index) {
  switch (index) {
    case 0:
      return x;
    case 1:
      return y;
    case 2:
      return z;
    case 3:
      return w;
    default:
      throw ('index is out of range: $index');
  }
}