Class SplinesDefs


  • public class SplinesDefs
    extends java.lang.Object
    • Field Detail

      • blackLeaf

        private static final java.awt.Point[] blackLeaf
      • redLeaf

        private static final java.awt.Point[] redLeaf
    • Constructor Detail

      • SplinesDefs

        public SplinesDefs()
    • Method Detail

      • getMainLeaf

        public static java.awt.Polygon getMainLeaf​(java.lang.Double scalex,
                                                   double scaley)
      • polygonizeControlPoints

        static java.awt.Polygon polygonizeControlPoints​(java.awt.Point[] pp,
                                                        double scalex,
                                                        double scaley)
      • getSecondLeaf

        public static java.awt.Polygon getSecondLeaf​(double scalex,
                                                     double scaley)
      • getNatCubicClosed

        static java.awt.Polygon getNatCubicClosed​(java.awt.Polygon p)
      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Small program to vectorize leaves
        Parameters:
        args -
        Throws:
        java.io.IOException
      • calculateMinimumDistance

        private static void calculateMinimumDistance​(SplinesDefs.Node evaluationNode,
                                                     java.lang.Integer edgeWeigh,
                                                     SplinesDefs.Node sourceNode)