Package com.irurueta.geometry
Class Polygon3DTest
java.lang.Object
com.irurueta.geometry.Polygon3DTest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final doubleprivate static final doubleprivate static final intprivate 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 TypeMethodDescriptionprivate static double[]absArray(double[] array) buildPolygonVertices(int sides, double radius, double theta) (package private) void(package private) voidtestArea()(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:
-
EPS
private static final double EPS- See Also:
-
INHOM_COORDS
private static final int INHOM_COORDS- See Also:
-
TIMES
private static final int TIMES- See Also:
-
-
Constructor Details
-
Polygon3DTest
Polygon3DTest()
-
-
Method Details
-
testConstants
@Test void testConstants() -
testConstructor
- Throws:
NotEnoughVerticesException
-
testGetSetTriangulatorMethod
- Throws:
NotEnoughVerticesException
-
testGetSetVertices1
- Throws:
NotEnoughVerticesException
-
testGetSetVertices2
- Throws:
NotEnoughVerticesException
-
testArea
- Throws:
NotEnoughVerticesException
-
testTriangulateIsTriangulatedAndArea
@Test void testTriangulateIsTriangulatedAndArea() throws NotEnoughVerticesException, TriangulatorException -
testPerimeter
- Throws:
NotEnoughVerticesException
-
testIsInside
-
testCenter
- Throws:
NotEnoughVerticesException
-
testIsLocusGetShortestDistanceAndClosestPoint
@Test void testIsLocusGetShortestDistanceAndClosestPoint() throws NotEnoughVerticesException, TriangulatorException, CoincidentPointsException -
testOrientation
@Test void testOrientation() throws NotEnoughVerticesException, CoincidentPointsException, ColinearPointsException -
testAngleBetweenPolygons
-
testSerializeDeserialize
@Test void testSerializeDeserialize() throws NotEnoughVerticesException, TriangulatorException, IOException, ClassNotFoundException -
buildPolygonVertices
-
absArray
private static double[] absArray(double[] array)
-