cz.cuni.jagrlib.iface
Interface FunctionR2ToR2

All Superinterfaces:
Property
All Known Implementing Classes:
DefaultFunctionR2ToR2, Deformations, FeatureDeformation, TriMeshDeformation

public interface FunctionR2ToR2
extends Property

General mapping from R2 to R2.

Since:
0.10
See Also:
FunctionR2ToR2.java

Field Summary
 
Fields inherited from interface cz.cuni.jagrlib.iface.Property
LOGGING, STATISTICS, TEXT_DESCRIPTION
 
Method Summary
 boolean df(double x, double y, double[] d)
          Compute partial derivatives: du(x,y)/dx, du(x,y)/dy, dv(x,y)/dx and dv(x,y)/dy.
 boolean dfInv(double u, double v, double[] d)
          Compute partial derivatives of inverse mapping: dx(u,v)/du, dx(u,v)/dv, dy(u,v)/du and dy(u,v)/dv.
 void f(double x, double y, double[] res)
          Compute the mapping: f(x,y).
 boolean fInv(double u, double v, double[] res)
          Compute the inverse mapping: f-1(u,v).
 boolean getDomain(double[] dom)
          Returns domain of the mapping.
 boolean getRange(double[] rng)
          Returns range of the mapping.
 
Methods inherited from interface cz.cuni.jagrlib.iface.Property
commit, get, set
 

Method Detail

f

void f(double x,
       double y,
       double[] res)
Compute the mapping: f(x,y).

Parameters:
x - X coordinate (1st argument).
y - Y coordinate (2nd argument).
res - Result array (res[0] = U coordinate, res[1] = V coordinate).

df

boolean df(double x,
           double y,
           double[] d)
Compute partial derivatives: du(x,y)/dx, du(x,y)/dy, dv(x,y)/dx and dv(x,y)/dy.

Parameters:
x - X coordinate (1st argument).
y - Y coordinate (2nd argument).
d - Array to hold results (d[0] = du(x,y)/dx, d[1] = du(x,y)/dy, d[2] = dv(x,y)/dx, d[3] = dv(x,y)/dy).
Returns:
true if this service is implemented.

fInv

boolean fInv(double u,
             double v,
             double[] res)
Compute the inverse mapping: f-1(u,v).

Parameters:
u - U coordinate (1st argument).
v - V coordinate (2nd argument).
res - Result array (res[0] = X coordinate, res[1] = Y coordinate).
Returns:
true if this service is implemented.

dfInv

boolean dfInv(double u,
              double v,
              double[] d)
Compute partial derivatives of inverse mapping: dx(u,v)/du, dx(u,v)/dv, dy(u,v)/du and dy(u,v)/dv.

Parameters:
u - U coordinate (1st argument).
v - V coordinate (2nd argument).
d - Array to hold results (d[0] = dx(u,v)/du, d[1] = dx(u,v)/dv, d[2] = dy(u,v)/du, d[3] = dy(u,v)/dv).
Returns:
true if this service is implemented.

getDomain

boolean getDomain(double[] dom)
Returns domain of the mapping.

Parameters:
dom - Domain array (dom[0] = Xmin, dom[1] = Xmax, dom[2] = Ymin, dom[3] = Ymax).
Returns:
true if this service is implemented.

getRange

boolean getRange(double[] rng)
Returns range of the mapping.

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