defines an equals method for vector3
defines an equals method for vector2