used vector class under a custom vec2d class