27Shape3D::Shape3D(
const CartesianCoordinate3D<float>& origin)
34 return norm(this->origin - s.origin) < .001F;
a templated class for 3-dimensional coordinates.
Definition CartesianCoordinate3D.h:53
virtual void translate(const CartesianCoordinate3D< float > &direction)
translate the whole shape by shifting its origin
Definition Shape3D.cxx:49
virtual bool operator==(const Shape3D &) const =0
Compare shapes.
Definition Shape3D.inl:32
bool operator!=(const Shape3D &) const
Compare shapes.
Definition Shape3D.inl:38
void scale_around_origin(const CartesianCoordinate3D< float > &scale3D)
scale the whole shape, keeping the centre at the same place
Definition Shape3D.inl:44
virtual void scale(const CartesianCoordinate3D< float > &scale3D)=0
scale the whole shape
CartesianCoordinate3D< float > get_origin() const
get the origin of the shape-coordinate system
Definition Shape3D.inl:54
double norm(const BasicCoordinate< num_dimensions, coordT > &p1)
compute sqrt(inner_product(p1,p1))
Definition BasicCoordinate.inl:426