Changing the internal representation of Point / Pointf / Point3 / Pointf3 to Eigen Matrix types:

Changed the Point3 / Pointf3 to composite Eigen Vec3crd / Vec3d.
Point3 is no more derived from Point,
Pointf3 is no more derived from Pointf.
Introduced Transform2f/3f/2d/3d types as aliases to Eigen::Transform.
This commit is contained in:
bubnikv 2018-08-14 21:33:41 +02:00
parent 86da661097
commit f34252a27b
15 changed files with 197 additions and 303 deletions

View file

@ -220,12 +220,12 @@ Line::ccw(const Point& point) const
double Line3::length() const
{
return a.distance_to(b);
return (b.data - a.data).norm();
}
Vector3 Line3::vector() const
{
return Vector3(b.x() - a.x(), b.y() - a.y(), b.z() - a.z());
return Vector3(b.data - a.data);
}
Pointf3