Package org.jamesii.core.math.random

Examples of org.jamesii.core.math.random.ComparableNumberPoint


  /**
   * Test {@link ComparableNumberPoint}, which is used for point cloud sampling.
   */
  public void testComparableNumberPoints() {
    ComparableNumberPoint simplePoint =
        new ComparableNumberPoint(new Double[] { 1., 2. });
    ComparableNumberPoint equalPoint =
        new ComparableNumberPoint(new Double[] { 1., 2. });

    ComparableNumberPoint unequalPoint1 =
        new ComparableNumberPoint(new Integer[] { 1, 2 });
    ComparableNumberPoint unequalPoint2 =
        new ComparableNumberPoint(new Double[] { 2., 1. });

    assertEquals(simplePoint, equalPoint);
    assertFalse(simplePoint.equals(unequalPoint1));
    assertFalse(simplePoint.equals(unequalPoint2));
  }
View Full Code Here

TOP

Related Classes of org.jamesii.core.math.random.ComparableNumberPoint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.