C++ Type error with Object versus Object reference
- by muddybruin
I have the following function (which worked in Visual Studio):
bool Plane::contains(Vector& point){
return normalVector.dotProduct(point - position) < -doubleResolution;
}
When I compile it using g++ version 4.1.2 , I get the following error:
Plane.cpp: In member function âvirtual bool Plane::contains(Vector&)â:
Plane.cpp:36:…