MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / expandToBoundingBox

Method expandToBoundingBox

src/openms/source/DATASTRUCTURES/ConvexHull2D.cpp:125–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 }
124
125 void ConvexHull2D::expandToBoundingBox()
126 {
127 DBoundingBox<2> bb(getBoundingBox());
128 typedef DBoundingBox<2>::PositionType Point;
129 clear();
130 addPoint(Point(bb.minPosition()[0], bb.minPosition()[1]));
131 addPoint(Point(bb.minPosition()[0], bb.maxPosition()[1]));
132 addPoint(Point(bb.maxPosition()[0], bb.minPosition()[1]));
133 addPoint(Point(bb.maxPosition()[0], bb.maxPosition()[1]));
134 }
135
136 /// returns the bounding box of the convex hull points
137 DBoundingBox<2> ConvexHull2D::getBoundingBox() const

Callers 4

testConvexHull2DFunction · 0.95
main_Method · 0.80

Calls 1

clearFunction · 0.50

Tested by 1

testConvexHull2DFunction · 0.76