Package net.lucidviews.geoalgo.limb.refine

Examples of net.lucidviews.geoalgo.limb.refine.AngleCalculationLimbRefiner.refine()


    Limb limb = new Limb();
    limb.setFeature( this.feature );
    limb.setIntersection( intersectionPoint );
   
    AngleCalculationLimbRefiner testObj = new AngleCalculationLimbRefiner();
    testObj.refine( limb, null, null );
   
    assertEquals( 90, limb.getAngle(), DOUBLE_TOLERANCE );
  }
 
  public void testVerticalDown() throws Exception
View Full Code Here


    Limb limb = new Limb();
    limb.setFeature( this.feature );
    limb.setIntersection( intersectionPoint );
   
    AngleCalculationLimbRefiner testObj = new AngleCalculationLimbRefiner();
    testObj.refine( limb, null, null );
   
    assertEquals( -90, limb.getAngle(), DOUBLE_TOLERANCE );
  }
 
  public void testFlat() throws Exception
View Full Code Here

    Limb limb = new Limb();
    limb.setFeature( this.feature );
    limb.setIntersection( intersectionPoint );
   
    AngleCalculationLimbRefiner testObj = new AngleCalculationLimbRefiner();
    testObj.refine( limb, null, null );
   
    assertEquals( 0, limb.getAngle(), DOUBLE_TOLERANCE );
  }
 
  public void testIncline() throws Exception
View Full Code Here

    Limb limb = new Limb();
    limb.setFeature( this.feature );
    limb.setIntersection( intersectionPoint );
   
    AngleCalculationLimbRefiner testObj = new AngleCalculationLimbRefiner();
    testObj.refine( limb, null, null );
   
    assertEquals( 45.0, limb.getAngle(), DOUBLE_TOLERANCE );
  }
 
  public void testDecline() throws Exception
View Full Code Here

    Limb limb = new Limb();
    limb.setFeature( this.feature );
    limb.setIntersection( intersectionPoint );
   
    AngleCalculationLimbRefiner testObj = new AngleCalculationLimbRefiner();
    testObj.refine( limb, null, null );
   
    assertEquals( -45.0, limb.getAngle(), DOUBLE_TOLERANCE );
  }
 
  public void testNegativeIncline() throws Exception
View Full Code Here

    Limb limb = new Limb();
    limb.setFeature( this.feature );
    limb.setIntersection( intersectionPoint );
   
    AngleCalculationLimbRefiner testObj = new AngleCalculationLimbRefiner();
    testObj.refine( limb, null, null );
   
    assertEquals( -45.0, limb.getAngle(), DOUBLE_TOLERANCE );
  }
 
  public void testNegativeDecline() throws Exception
View Full Code Here

    Limb limb = new Limb();
    limb.setFeature( this.feature );
    limb.setIntersection( intersectionPoint );
   
    AngleCalculationLimbRefiner testObj = new AngleCalculationLimbRefiner();
    testObj.refine( limb, null, null );
   
    assertEquals( 45.0, limb.getAngle(), DOUBLE_TOLERANCE );
  }
 
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.