public static class ShadowPathParser.PathDataNode
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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 . |
static void |
nodesToPath(ShadowPathParser.PathDataNode[] node,
android.graphics.Path path)
Convert an array of PathDataNode to Path.
|
public static void nodesToPath(ShadowPathParser.PathDataNode[] node, android.graphics.Path path)
Convert an array of PathDataNode to Path.
node
- The source array of PathDataNode.path
- The target Path object.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
.
nodeFrom
- The start value as a PathDataNode.nodeTo
- The end value as a PathDataNodefraction
- The fraction to interpolate.