sub method

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

Implementation

@override
Vector4 sub(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;
}