类 ConvexHullGenerator2DAbstractTest
java.lang.Object
org.hipparchus.geometry.euclidean.twod.hull.ConvexHullGenerator2DAbstractTest
2D凸包生成器的抽象基础测试类。
-
字段概要
-
构造器概要
-
方法概要
修饰符和类型方法说明protected final void
checkConvexHull
(Collection<Vector2D> points, ConvexHull2D hull) protected final void
checkConvexHull
(Collection<Vector2D> points, ConvexHull2D hull, boolean includesCollinearPoints) protected final void
checkConvexHull
(Collection<Vector2D> points, ConvexHull2D hull, boolean includesCollinearPoints, double tolerance) protected final void
checkPointsInsideHullRegion
(Collection<Vector2D> points, ConvexHull2D hull, boolean includesCollinearPoints) protected abstract ConvexHullGenerator2D
createConvexHullGenerator
(boolean includeCollinearPoints) createRandomPoints
(int size) protected final boolean
isConvex
(ConvexHull2D hull, boolean includesCollinearPoints, double tolerance) protected Collection
<Vector2D> reducePoints
(Collection<Vector2D> points) void
setUp()
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
-
字段详细资料
-
generator
-
random
-
-
构造器详细资料
-
ConvexHullGenerator2DAbstractTest
public ConvexHullGenerator2DAbstractTest()
-
-
方法详细资料
-
createConvexHullGenerator
-
reducePoints
-
setUp
public void setUp() -
testNullArgument
public void testNullArgument() -
testEmpty
public void testEmpty() -
testOnePoint
public void testOnePoint() -
testTwoPoints
public void testTwoPoints() -
testAllIdentical
public void testAllIdentical() -
testConvexHull
public void testConvexHull() -
testCollinearPoints
public void testCollinearPoints() -
testCollinearPointsReverse
public void testCollinearPointsReverse() -
testCollinearPointsIncluded
public void testCollinearPointsIncluded() -
testCollinearPointsIncludedReverse
public void testCollinearPointsIncludedReverse() -
testIdenticalPoints
public void testIdenticalPoints() -
testIdenticalPoints2
public void testIdenticalPoints2() -
testClosePoints
public void testClosePoints() -
testCollinearPointOnExistingBoundary
public void testCollinearPointOnExistingBoundary() -
testCollinearPointsInAnyOrder
public void testCollinearPointsInAnyOrder() -
testIssue1123
public void testIssue1123() -
createRandomPoints
-
checkConvexHull
-
checkConvexHull
protected final void checkConvexHull(Collection<Vector2D> points, ConvexHull2D hull, boolean includesCollinearPoints) -
checkConvexHull
protected final void checkConvexHull(Collection<Vector2D> points, ConvexHull2D hull, boolean includesCollinearPoints, double tolerance) -
isConvex
protected final boolean isConvex(ConvexHull2D hull, boolean includesCollinearPoints, double tolerance) -
checkPointsInsideHullRegion
protected final void checkPointsInsideHullRegion(Collection<Vector2D> points, ConvexHull2D hull, boolean includesCollinearPoints)
-