cz.cuni.jagrlib.iface
Interface Interpolation2D

All Superinterfaces:
Property

public interface Interpolation2D
extends Property

General 2D interpolation / approximation interface (mapping from <A,B> x <C,D> to RN).

Since:
0.10
See Also:
Interpolation2D.java

Field Summary
 
Fields inherited from interface cz.cuni.jagrlib.iface.Property
LOGGING, STATISTICS, TEXT_DESCRIPTION
 
Method Summary
 boolean compute(double u, double v)
          Compute the interpolation / approximation (front-end only).
 boolean getDomain(double[] dom)
          Returns domain of the [U,V] parameters.
 double interpolate(double u, double v)
          Compute scalar interpolation / approximation.
 boolean interpolate(double u, double v, double[] res)
          Compute vector interpolation / approximation.
 boolean setAttribute(double u, double v, double[] attr)
          Sets a knot attribute (whatever it is) for value of [U,V].
 boolean setDomain(double[] dom)
          Sets domain of the [U,V] parameters.
 
Methods inherited from interface cz.cuni.jagrlib.iface.Property
commit, get, set
 

Method Detail

compute

boolean compute(double u,
                double v)
Compute the interpolation / approximation (front-end only).

Parameters:
u - U parameter.
v - V parameter.
Returns:
true if this service is implemented.

interpolate

double interpolate(double u,
                   double v)
Compute scalar interpolation / approximation.

Parameters:
u - U parameter.
v - V parameter.
Returns:
Interpolated value.

interpolate

boolean interpolate(double u,
                    double v,
                    double[] res)
Compute vector interpolation / approximation.

Parameters:
u - U parameter.
v - V parameter.
res - Pre-allocated result array.
Returns:
true if this service is implemented.

getDomain

boolean getDomain(double[] dom)
Returns domain of the [U,V] parameters.

Parameters:
dom - Domain array (dom[0] = Umin, dom[1] = Umax, dom[2] = Vmin, dom[3] = Vmax).
Returns:
true if this service is implemented.

setDomain

boolean setDomain(double[] dom)
Sets domain of the [U,V] parameters.

Parameters:
dom - Domain array (dom[0] = Umin, dom[1] = Umax, dom[2] = Vmin, dom[3] = Vmax).
Returns:
true if this service is implemented.

setAttribute

boolean setAttribute(double u,
                     double v,
                     double[] attr)
Sets a knot attribute (whatever it is) for value of [U,V].

Parameters:
u - U parameter.
v - V parameter.
attr - Attribute array (semanthics is not defined).
Returns:
true if this service is implemented.