#pragma once class Vector2D { public: float x, y;//メンバ変数 Vector2D(float _x, float _y); Vector2D Add(const Vector2D& _v); // this = this + _v; float Distance(const Vector2D& _v); //thisと_vの距離 };