mirror of
https://github.com/gwm17/catima.git
synced 2024-11-22 18:28:51 -05:00
commit
1e4fefee8a
|
@ -62,16 +62,6 @@ void Material::calculate(){
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
Layers& Layers::operator=(const Layers& other){
|
||||
|
||||
materials.clear();
|
||||
for(auto&e : other.get_materials()){
|
||||
materials.push_back(e);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
void Layers::add(Material m){
|
||||
materials.push_back(m);
|
||||
}
|
||||
|
|
|
@ -251,8 +251,7 @@ namespace catima{
|
|||
private:
|
||||
std::vector<Material> materials;
|
||||
public:
|
||||
Layers(){};
|
||||
Layers& operator=(const Layers& other);
|
||||
Layers() = default;
|
||||
|
||||
/**
|
||||
* @return reference to the std::vector of stored Materials
|
||||
|
|
|
@ -7,17 +7,6 @@ using namespace std;
|
|||
#include "catima/catima.h"
|
||||
#include "catima/material_database.h"
|
||||
|
||||
bool rcompare(double a, double b,double eps){
|
||||
if(fabs((a-b)/fabs(b))<eps){
|
||||
return true;
|
||||
}
|
||||
else{
|
||||
std::cout<<"\033[1;31m"<<a<<" == "<<b<<"\033[0m"<<std::endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
TEST_CASE("atima material basic tests"){
|
||||
catima::Material water({
|
||||
{1,1,2},
|
||||
|
|
Loading…
Reference in New Issue
Block a user