jabble.stencils
Class StencilUtils

java.lang.Object
  extended by jabble.stencils.StencilUtils

public class StencilUtils
extends java.lang.Object

Utility class to set the Point for all stencils. Instead of passing the Point to each stencil, you'll need to use the StencilUtils.setPoint(Point) method. All stencils in the libraries will get the point from there.


Method Summary
static double[] calculateTaylorCoeff(int nPoints, double nStep)
           
static double[][] calculateTaylorMatrix(int nPoints, int firstOffset)
           
static double[] getDiff()
           
static Point getPoint()
          Returns the Point at which all stencils will calculate the value of their respective operator.
static void setDiffFields(Field... dFields)
           
static void setPoint(Point point)
          Make all the stencils calculate the oeprators at the given Point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setPoint

public static void setPoint(Point point)
Make all the stencils calculate the oeprators at the given Point.

Parameters:
point - A Point on the Grid.

getPoint

public static Point getPoint()
Returns the Point at which all stencils will calculate the value of their respective operator.

Returns:
A Point on the Grid.

setDiffFields

public static void setDiffFields(Field... dFields)

getDiff

public static double[] getDiff()

calculateTaylorCoeff

public static double[] calculateTaylorCoeff(int nPoints,
                                            double nStep)

calculateTaylorMatrix

public static double[][] calculateTaylorMatrix(int nPoints,
                                               int firstOffset)