I made a vector2D class with a "double magnitude;" data member. I also have some functions that take double as arguments. Is there any way I can put a vector2D object as an argument to these functions instead of "vector2D.magnitude"? If so, does it work only if magnitude is public or does it also work as private?