kitfox-svg-core
1.0.0-build001 / 2012-04-07T15:40:49.711-0500

com.kitfox.svg.animation
Class Bezier

java.lang.Object
  extended by com.kitfox.svg.animation.Bezier

public class Bezier
extends Object

http://mathworld.wolfram.com/BezierCurve.html

Author:
kitfox

Constructor Summary
Bezier(double sx, double sy, double[] coords, int numCoords)
           
 
Method Summary
 Point2D.Double eval(double param, Point2D.Double point)
           
 Point2D.Double getFinalPoint(Point2D.Double point)
           
 double getLength()
          Retuns aproximation of the length of the bezier
 void setCoords(double sx, double sy, double[] coords, int numCoords)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bezier

public Bezier(double sx,
              double sy,
              double[] coords,
              int numCoords)
Method Detail

setCoords

public void setCoords(double sx,
                      double sy,
                      double[] coords,
                      int numCoords)

getLength

public double getLength()
Retuns aproximation of the length of the bezier


getFinalPoint

public Point2D.Double getFinalPoint(Point2D.Double point)

eval

public Point2D.Double eval(double param,
                           Point2D.Double point)

kitfox-svg-core
1.0.0-build001 / 2012-04-07T15:40:49.711-0500

Copyright © 2011-2012 Barchart, Inc.. All Rights Reserved.