implement Vector3 in Sample.cpp