Some initial work for 3D slice rendering

This commit is contained in:
Alessandro Ranellucci 2014-12-15 15:19:42 +01:00
parent a34cd24fa1
commit a82f95e903
5 changed files with 100 additions and 3 deletions

View file

@ -133,6 +133,12 @@ Line::vector() const
return Vector(this->b.x - this->a.x, this->b.y - this->a.y);
}
Vector
Line::normal() const
{
return Vector((this->b.y - this->a.y), -(this->b.x - this->a.x));
}
#ifdef SLIC3RXS
REGISTER_CLASS(Line, "Line");