Uploaded image for project: 'OpenTrafficSim'
  1. OpenTrafficSim
  2. OTS-263

ShapeTest unit test fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Unresolved
    • Labels:
      None
    • Epic Link:
    • Sprint:
      Sprint 9 (Version 0.14)
    • Java Project:
      generic

      Description

              // Make vertical and horizontal box
              OTSShape vertical = new OTSShape(new OTSPoint3D[] { new OTSPoint3D(-1, -10, 0), new OTSPoint3D(1, -10, 0),
                      new OTSPoint3D(1, 10, 0), new OTSPoint3D(-1, 10, 0), new OTSPoint3D(-1, -10, 0) });
              OTSShape horizontal = new OTSShape(new OTSPoint3D[] { new OTSPoint3D(-10, -1, 0), new OTSPoint3D(10, -1, 0),
                      new OTSPoint3D(10, 1, 0), new OTSPoint3D(-10, 1, 0), new OTSPoint3D(-10, -1, 0) });
              assertTrue("shapes hit", vertical.intersects(horizontal));
      

      indicates it is not true.

        Attachments

          Activity

            People

            • Assignee:
              P.Knoppers Peter Knoppers
              Reporter:
              averbraeck Alexander Verbraeck
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h