Package com.irurueta.geometry
Class Polygon2DTest
java.lang.Object
com.irurueta.geometry.Polygon2DTest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final doubleprivate static final doubleprivate static final doubleprivate static final intprivate static final doubleprivate static final doubleprivate static final intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildPolygonVertices(int sides, double radius) (package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void
-
Field Details
-
MIN_SIDES
private static final int MIN_SIDES- See Also:
-
MAX_SIDES
private static final int MAX_SIDES- See Also:
-
MIN_RADIUS
private static final double MIN_RADIUS- See Also:
-
MAX_RADIUS
private static final double MAX_RADIUS- See Also:
-
MIN_ANGLE_DEGREES
private static final double MIN_ANGLE_DEGREES- See Also:
-
MAX_ANGLE_DEGREES
private static final double MAX_ANGLE_DEGREES- See Also:
-
ABSOLUTE_ERROR
private static final double ABSOLUTE_ERROR- See Also:
-
TIMES
private static final int TIMES- See Also:
-
-
Constructor Details
-
Polygon2DTest
Polygon2DTest()
-
-
Method Details
-
testConstants
@Test void testConstants() -
testConstructor
- Throws:
NotEnoughVerticesException
-
testGetSetTriangulatorMethod
- Throws:
NotEnoughVerticesException
-
testGetSetVertices1
- Throws:
NotEnoughVerticesException
-
testGetSetVertices2
- Throws:
NotEnoughVerticesException
-
testTriangulateIsTriangulatedAndArea
@Test void testTriangulateIsTriangulatedAndArea() throws NotEnoughVerticesException, TriangulatorException -
testGetAreaSignedAreaAndAreVerticesClockwise
- Throws:
NotEnoughVerticesException
-
testPerimeter
- Throws:
NotEnoughVerticesException
-
testIsInside
-
testCenter
- Throws:
NotEnoughVerticesException
-
testIsLocusGetShortestDistanceAndClosestPoint
@Test void testIsLocusGetShortestDistanceAndClosestPoint() throws NotEnoughVerticesException, TriangulatorException -
testSerializeDeserialize
@Test void testSerializeDeserialize() throws NotEnoughVerticesException, TriangulatorException, IOException, ClassNotFoundException -
buildPolygonVertices
-