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};
std::array< int, 3 > Triangle
std::function< Vec3(Vec3 const &)> Fun3v
std::function< double(Vec3 const &)> Fun3s
std::vector< Vec3 > vertexNormals
std::vector< Triangle > triangles
std::vector< Vec3 > vertices
Vec3 operator*(double c) const
Vec3 operator-(Vec3 const &o) const
Vec3 operator+(Vec3 const &o) const