setFrom method

  1. @override
Vector4 setFrom(
  1. Vector v
)
override

Implementation

@override
Vector4 setFrom(Vector v) {
  x = v.x;
  y = v.y;
  if(v is Vector4){
    z = v.z;
    w = v.w;
  }
  else if (v is Vector3){
    z = v.z;
  }

  return this;
}