mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 20:28:08 -06:00
Replaced Point3 with Eigen Vec3crd, removed Point3 from the Perl binding.
This commit is contained in:
parent
0b5b02e002
commit
ac72cd779f
19 changed files with 68 additions and 118 deletions
|
@ -58,14 +58,14 @@ public:
|
|||
class Line3
|
||||
{
|
||||
public:
|
||||
Line3() {}
|
||||
Line3(const Point3& _a, const Point3& _b) : a(_a), b(_b) {}
|
||||
Line3() : a(Vec3crd::Zero()), b(Vec3crd::Zero()) {}
|
||||
Line3(const Vec3crd& _a, const Vec3crd& _b) : a(_a), b(_b) {}
|
||||
|
||||
double length() const { return (this->a - this->b).cast<double>().norm(); }
|
||||
Vector3 vector() const { return this->b - this->a; }
|
||||
Vec3crd vector() const { return this->b - this->a; }
|
||||
|
||||
Point3 a;
|
||||
Point3 b;
|
||||
Vec3crd a;
|
||||
Vec3crd b;
|
||||
};
|
||||
|
||||
class Linef
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue