armi.utils.tests.test_triangle module

Test the basic triangle math

class armi.utils.tests.test_triangle.TestTriangle(methodName='runTest')[source]

Bases: unittest.case.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_getTriangleArea()[source]

Test that getTriangleArea correctly calculates the area of a right triangle.

test_checkIfPointIsInTriangle()[source]

Test that checkIfPointIsInTrinagle can correctly identify if a point is inside or outside of a triangle.

test_checkIfPointIsInTriangle2()[source]

Test that barycentricCheckIfPointIsInTriangle can identify if a point is inside or outside of a triangle.