geom/tri: be consistent with struct/classes

This commit is contained in:
Danny Robson 2018-05-01 16:01:17 +10:00
parent 93277d5d9d
commit a22829e9fc

View File

@ -43,7 +43,8 @@ namespace util::geom {
namespace surface {
template <size_t S, typename T>
struct sampler<tri<S,T>> {
class sampler<tri<S,T>> {
public:
sampler (tri<S,T> _target):
base (_target.a),
v0 (_target.b - _target.a),
@ -58,6 +59,7 @@ namespace util::geom {
return base + dist (gen) * v0 + dist (gen) * v1;
}
private:
util::point<S,T> base;
util::vector<S,T> v0, v1;
};