/** * \brief Transform from current triangle to the target triangle */ Transform Triangle::to(const Triangle& target) const { double rotation = rotate_to(target); double scale = scale_to(target); Transform result(rotation, Point(), scale); Point translation = target.basepoint() - result(basepoint()); result = result + translation; return result; }
ON_2dPoint ON_Hatch::BasePoint2d() const { ON_2dPoint basepoint(0.0,0.0); const ON_HatchExtra* pE = ON_HatchExtra::HatchExtension(this,false); if(pE) basepoint = pE->BasePoint(); return basepoint; }