14 return {x + o.
x, y + o.
y, z + o.
z};
19 return {x - o.
x, y - o.
y, z - o.
z};
24 return {c *
x, c *
y, c * z};
29 return sqrt(x * x + y * y + z * z);
35 return {x / n, y / n, z / n};
54 using Fun3s = std::function<double(Vec3 const &)>;
55 using Fun3v = std::function<Vec3(Vec3 const &)>;
std::vector< Vec3 > vertices
std::vector< Vec3 > vertexNormals
std::function< double(Vec3 const &)> Fun3s
Vec3 operator*(double c) const
Vec3 operator+(Vec3 const &o) const
std::function< Vec3(Vec3 const &)> Fun3v
std::array< int, 3 > Triangle
std::vector< Triangle > triangles
Vec3 operator-(Vec3 const &o) const