add method

  1. @override
Vector4 add(
  1. Vector a
)
override

Implementation

@override
Vector4 add(Vector a) {
  x += a.x;
  y += a.y;
  if(a is Vector4){
    z += a.z;
    w += a.w;
  }
  else if(a is Vector3){
    z += a.z;
  }

  return this;
}