// Path: java/SpiroPointType.java
// public enum SpiroPointType { CORNER, G4, G2, LEFT, RIGHT,
// 				    END, OPEN, OPEN_END }


import java.lang.Math;
import java.util.ArrayList;
import java.io.Writer;
import java.io.BufferedReader;
import java.io.IOException;
import static net.sourceforge.libspiro.SpiroPointType.*;
/*
libspiro - conversion between spiro control points and bezier's
CopySpiroPointType.RIGHT (C) 2007 Raph Levien
              2009 converted to Java by George Williams

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.

*/

package net.sourceforge.libspiro;


public class Spiro {
    // Spiro has no constructors. It simply provides (static) methods to convert
    // between a spiro contour (an array of SpiroCP) and a cubic Bezier contour
    // and routines for reading/writing plate files

    static protected class spiro_seg {
	double x;
	double y;
// Path: java/SpiroPointType.java
// public enum SpiroPointType { CORNER, G4, G2, LEFT, RIGHT,
// 				    END, OPEN, OPEN_END }


// Path: java/Spiro.java
import java.lang.Math;
import java.util.ArrayList;
import java.io.Writer;
import java.io.BufferedReader;
import java.io.IOException;
import static net.sourceforge.libspiro.SpiroPointType.*;

/*
libspiro - conversion between spiro control points and bezier's
CopySpiroPointType.RIGHT (C) 2007 Raph Levien
              2009 converted to Java by George Williams

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.

*/

package net.sourceforge.libspiro;


public class Spiro {
    // Spiro has no constructors. It simply provides (static) methods to convert
    // between a spiro contour (an array of SpiroCP) and a cubic Bezier contour
    // and routines for reading/writing plate files

    static protected class spiro_seg {
	double x;
	double y;
	SpiroPointType type;