mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-17 03:37:54 -06:00
Some initial work for 3D slice rendering
This commit is contained in:
parent
a34cd24fa1
commit
a82f95e903
5 changed files with 100 additions and 3 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue