paysages3d/src/definition/VegetationInstance.cpp

11 lines
428 B
C++
Raw Normal View History

2015-10-18 15:26:19 +00:00
#include "VegetationInstance.h"
VegetationInstance::VegetationInstance(const VegetationModelDefinition &model, const Vector3 &base, double size,
double angle)
: model(model), base(base), size(size), angle(angle) {
2015-10-18 15:26:19 +00:00
}
2015-10-18 20:15:19 +00:00
VegetationInstance VegetationInstance::displace(const Vector3 &location, const Vector3 &normal) const {
2015-10-18 20:15:19 +00:00
return VegetationInstance(model, location, size, angle);
}