Class Vec3fTest

java.lang.Object
edu.nps.moves.dis7.test.Vec3fTest

@DisplayName("Vec3fTest") public class Vec3fTest extends Object
Unit tests for Vec3f legacy math class. Validates vector construction, arithmetic, dot/cross products, normalization, and transforms.
  • Constructor Details

    • Vec3fTest

      public Vec3fTest()
      default constructor
  • Method Details

    • setUpClass

      @BeforeAll public static void setUpClass()
    • tearDownClass

      @AfterAll public static void tearDownClass()
    • testDefaultConstructor

      @Test public void testDefaultConstructor()
    • testComponentConstructor

      @Test public void testComponentConstructor()
    • testCopyConstructor

      @Test public void testCopyConstructor()
    • testAdd

      @Test public void testAdd()
    • testAddTwoVectors

      @Test public void testAddTwoVectors()
    • testSub

      @Test public void testSub()
    • testScale

      @Test public void testScale()
    • testNegate

      @Test public void testNegate()
    • testLength

      @Test public void testLength()
    • testNormalize

      @Test public void testNormalize()
    • testNormalizeZeroVector

      @Test public void testNormalizeZeroVector()
    • testDotProduct

      @Test public void testDotProduct()
    • testCrossProduct

      @Test public void testCrossProduct()
    • testCrossProductTwoVectors

      @Test public void testCrossProductTwoVectors()
    • testMakeNull

      @Test public void testMakeNull()
    • testXformIdentity

      @Test public void testXformIdentity()
    • main

      public static void main(String[] args)
      Command-line invocation (CLI) of program, execution starts here
      Parameters:
      args - command-line arguments