MCPcopy Create free account
hub / github.com/MITK/MITK / IntersectWithPlane2D

Method IntersectWithPlane2D

Modules/Core/src/DataManagement/mitkPlaneGeometry.cpp:627–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

625 }
626
627 unsigned int PlaneGeometry::IntersectWithPlane2D(const PlaneGeometry *plane, Point2D &lineFrom, Point2D &lineTo) const
628 {
629 Line3D crossline;
630 if (this->IntersectionLine(plane, crossline) == false)
631 return 0;
632
633 Point2D point2;
634 Vector2D direction2;
635
636 this->Map(crossline.GetPoint(), point2);
637 this->Map(crossline.GetPoint(), crossline.GetDirection(), direction2);
638
639 return Line3D::RectangleLineIntersection(
640 0, 0, GetExtentInMM(0), GetExtentInMM(1), point2, direction2, lineFrom, lineTo);
641 }
642
643 double PlaneGeometry::Angle(const PlaneGeometry *plane) const
644 {

Callers

nothing calls this directly

Calls 3

IntersectionLineMethod · 0.95
MapMethod · 0.95
GetPointMethod · 0.45

Tested by

no test coverage detected