org.jcae.mesh.amibe.patch
Interface Calculus

All Known Implementing Classes:
Calculus2D, Calculus3D

public interface Calculus


Method Summary
 double distance(Vertex2D start, Vertex2D end)
          Returns the distance between two points.
 double distance2(Vertex2D start, Vertex2D end, Metric2D m2)
          Returns square distance between two points.
 double[] getBounds2D(Vertex2D vm)
          Returns bounds of unit ellipse centered at a point.
 double length(VirtualHalfEdge2D ot)
          Returns the length of an edge.
 

Method Detail

length

double length(VirtualHalfEdge2D ot)
Returns the length of an edge.

Parameters:
ot - edge being measured

distance

double distance(Vertex2D start,
                Vertex2D end)
Returns the distance between two points. Metrics on both points is used to interpolate this length.

Parameters:
start - the start node
end - the end node
Returns:
the distance between these two points.

distance2

double distance2(Vertex2D start,
                 Vertex2D end,
                 Metric2D m2)
Returns square distance between two points. This distance is evaluated by using metrics at a given point.

Parameters:
start - start node
end - end node
m2 - Riemannian metrics
Returns:
square distance between these two points.

getBounds2D

double[] getBounds2D(Vertex2D vm)
Returns bounds of unit ellipse centered at a point. This routine returns a double array which represents enclosing bounding box of unit ellipse. This method is used by KdTree.getNearestVertex(org.jcae.mesh.amibe.ds.Mesh, org.jcae.mesh.amibe.ds.Vertex); if an octant does not intersect this bounding box, it does also not intersect unit ellipse.

Parameters:
vm - the vertex on which metrics is evaluated
Returns:
bounding box of unit ellipse