Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Plane.cpp

    r82cf79 r112b09  
    1515#include "verbose.hpp"
    1616#include "Helpers/Assert.hpp"
    17 #include "helpers.hpp"
    1817#include <cmath>
    1918#include "Line.hpp"
     
    107106Plane::~Plane()
    108107{}
    109 
    110 Plane &Plane::operator=(const Plane &rhs){
    111   if(&rhs!=this){
    112     normalVector.reset(new Vector(*rhs.normalVector));
    113     offset = rhs.offset;
    114   }
    115   return *this;
    116 }
    117108
    118109
     
    197188}
    198189
    199 bool Plane::onSameSide(const Vector &point1,const Vector &point2) const{
    200   return sign(point1.ScalarProduct(*normalVector)-offset) ==
    201          sign(point2.ScalarProduct(*normalVector)-offset);
    202 }
    203 
    204190/************ Methods inherited from Space ****************/
    205191
     
    221207// Operators
    222208
    223 bool operator==(const Plane &x,const Plane &y){
    224   return *x.normalVector == *y.normalVector && x.offset == y.offset;
    225 }
    226 
    227209ostream &operator << (ostream &ost,const Plane &p){
    228210  ost << "<" << p.getNormal() << ";x> - " << p.getOffset() << "=0";
Note: See TracChangeset for help on using the changeset viewer.