Class ShadowPathParser.PathDataNode

    • Method Detail

      • nodesToPath

        public static void nodesToPath​(ShadowPathParser.PathDataNode[] node,
                                       Path path)
        Convert an array of PathDataNode to Path.
        Parameters:
        node - The source array of PathDataNode.
        path - The target Path object.
      • interpolatePathDataNode

        public void interpolatePathDataNode​(ShadowPathParser.PathDataNode nodeFrom,
                                            ShadowPathParser.PathDataNode nodeTo,
                                            float fraction)
        The current PathDataNode will be interpolated between the nodeFrom and nodeTo according to the fraction.
        Parameters:
        nodeFrom - The start value as a PathDataNode.
        nodeTo - The end value as a PathDataNode
        fraction - The fraction to interpolate.