Class ScalarFieldUtils.LinearScalarField

java.lang.Object
  extended by ScalarFieldUtils.LinearScalarField
All Implemented Interfaces:
IScalarField
Enclosing class:
ScalarFieldUtils

public static class ScalarFieldUtils.LinearScalarField
extends java.lang.Object
implements IScalarField


Constructor Summary
ScalarFieldUtils.LinearScalarField()
           
ScalarFieldUtils.LinearScalarField(double lfOffset)
           
ScalarFieldUtils.LinearScalarField(double lfCX, double lfCY, int nAxis, double lfOffset)
           
ScalarFieldUtils.LinearScalarField(ScalarFieldUtils.LinearScalarField src)
           
 
Method Summary
 double[] accessCtrVec()
           
 double[] accessDirVec()
           
 double[] getGradient(double[] arrLoc)
          Gradient at a particular location
 void getGradient(double[] arrLoc, double[] arrRslt)
          Gradient at a particular location
 double getVal(double[] arrLfLoc)
           
 IScalarField makeCopy()
           
 void setCtrVec(double[] ctrVec)
           
 void setDirVec(double[] dirVec)
           
 void setOffset(double lfOff)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScalarFieldUtils.LinearScalarField

public ScalarFieldUtils.LinearScalarField()

ScalarFieldUtils.LinearScalarField

public ScalarFieldUtils.LinearScalarField(double lfOffset)

ScalarFieldUtils.LinearScalarField

public ScalarFieldUtils.LinearScalarField(double lfCX,
                                          double lfCY,
                                          int nAxis,
                                          double lfOffset)

ScalarFieldUtils.LinearScalarField

public ScalarFieldUtils.LinearScalarField(ScalarFieldUtils.LinearScalarField src)
Method Detail

accessCtrVec

public double[] accessCtrVec()

accessDirVec

public double[] accessDirVec()

setCtrVec

public void setCtrVec(double[] ctrVec)

setDirVec

public void setDirVec(double[] dirVec)

setOffset

public void setOffset(double lfOff)

getVal

public double getVal(double[] arrLfLoc)
Specified by:
getVal in interface IScalarField

getGradient

public double[] getGradient(double[] arrLoc)
Gradient at a particular location

Specified by:
getGradient in interface IScalarField
Parameters:
arrLoc - place at which to take gradient
Returns:
gradient (of proper dimensionality) as a double []

getGradient

public void getGradient(double[] arrLoc,
                        double[] arrRslt)
Gradient at a particular location

Specified by:
getGradient in interface IScalarField
Parameters:
arrLoc - place at which to take gradient
arrRslt - gradient (of proper dimensionality) as a double []

makeCopy

public IScalarField makeCopy()
Specified by:
makeCopy in interface IScalarField