/* * Space.cpp * * Created on: Apr 30, 2010 * Author: crueger */ #include "Helpers/MemDebug.hpp" #include "Space.hpp" #include "vector.hpp" Space::Space() {} Space::~Space() {} bool Space::hasZero() const{ return isContained(zeroVec); } Vector Space::getVectorToPoint(const Vector &origin) const{ Vector support = getClosestPoint(origin); return support-origin; } bool Space::isContained(const Vector &point) const{ return (distance(point)) < MYEPSILON; }