ru.sscc.spline.mesh
Class SimpleMeshWorkspace

java.lang.Object
  |
  +--ru.sscc.spline.SplineWorkspace
        |
        +--ru.sscc.spline.mesh.SimpleMeshWorkspace
Direct Known Subclasses:
PSplineWorkspace

public class SimpleMeshWorkspace
extends SplineWorkspace

An auxiliary class useful in 1D spline values calculations. It contains attributes applied in search of a mesh cell which contains a point.


Field Summary
 int cellIndex
          An index of cell containing the point.
 double cellPoint
          A distance of the point from the left bound of cell in which the point is situated.
 
Fields inherited from class ru.sscc.spline.SplineWorkspace
data, dataCount, dataIndex
 
Constructor Summary
protected SimpleMeshWorkspace(RealPointer data)
          Constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cellIndex

public int cellIndex
An index of cell containing the point. cellIndex=0 means the point hits to the left from mesh cells. If n is a number of cells, then cellIndex=n+1 means the hitting to the right from mesh cells. The values in the range [1..n] means the hitting into the mesh cell indexed from 1.

cellPoint

public double cellPoint
A distance of the point from the left bound of cell in which the point is situated. For cellIndex=0 this attribute means the distance from the first left mesh node.
Constructor Detail

SimpleMeshWorkspace

protected SimpleMeshWorkspace(RealPointer data)
Constructor.
Parameters:
data - a pointer to data container associated with spline(s).