@Test
public void testLinearizeArc() {

    double[] p0 = new double[] { .5, 0.5 };
    double[] p1 = new double[] { -.5, -.2 };
    double[] p2 = new double[] { -2, -0.6 };
    Points positions = createLinearArc( p0, p1, p2, false );
    Point lastPoint = null;
    for ( Point point : positions ) {
        if ( lastPoint != null ) {
            double delta = Math.sqrt( ( point.get0() - lastPoint.get0() ) * ( point.get0() - lastPoint.get0() )
                                      + ( point.get1() - lastPoint.get1() ) * ( point.get1() - lastPoint.get1() ) );
            Assert.assertEquals( 0.199115, delta, 0.000001 );
        }
        lastPoint = point;
    }
    Assert.assertEquals( 15, positions.size() );
    Assert.assertEquals( p0[0], positions.get( 0 ).get0(), 1E-15 );
    Assert.assertEquals( p0[1], positions.get( 0 ).get1(), 1E-15 );
    Assert.assertEquals( p2[0], positions.get( positions.size() - 1 ).get0(), 1E-15 );
    Assert.assertEquals( p2[1], positions.get( positions.size() - 1 ).get1(), 1E-15 );
}