MCPcopy Create free account
hub / github.com/Nurtak/ObjectGraphVisualization / lineBoxIntersection

Method lineBoxIntersection

src/ch/hsr/ogv/view/Arrow.java:345–347  ·  view source on GitHub ↗
(Point3D internalPoint, PaneBox box, Point3D externalPoint)

Source from the content-addressed store, hash-verified

343 }
344
345 private Point2D lineBoxIntersection(Point3D internalPoint, PaneBox box, Point3D externalPoint) {
346 return lineRectangleIntersection(internalPoint, externalPoint, box.getCenterPoint(), box.getWidth(), box.getHeight());
347 }
348
349 private Point2D lineRectangleIntersection(Point3D internalPoint, Point3D externalPoint, Point3D centerPoint, double width, double height) {
350 double halfWidth = width / 2;

Callers 1

setPointsMethod · 0.95

Calls 4

getCenterPointMethod · 0.80
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected