|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jcae.mesh.amibe.patch.Calculus2D
public class Calculus2D
Distance computations in 2D Euclidian space.
This class is called from BasicMesh
but may also be used if amibe is extended to mesh 2D surfaces.
Constructor Summary | |
---|---|
Calculus2D(Mesh2D m)
Constructor. |
Method Summary | |
---|---|
double |
distance(Vertex2D start,
Vertex2D end)
Returns the 2D distance to another Vertex2D instance. |
double |
distance2(Vertex2D start,
Vertex2D end,
Metric2D m2)
Returns square distance to another Vertex2D instance. |
double[] |
getBounds2D(Vertex2D vm)
Returns bounds of unit ellipse centered at a point. |
double |
length(VirtualHalfEdge2D ot)
Returns the 2D length of an edge. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Calculus2D(Mesh2D m)
m
- the Mesh2D
being modified.Method Detail |
---|
public double distance2(Vertex2D start, Vertex2D end, Metric2D m2)
Vertex2D
instance.
distance2
in interface Calculus
start
- first nodeend
- end nodem2
- metrics (unused)
public double distance(Vertex2D start, Vertex2D end)
Vertex2D
instance.
distance
in interface Calculus
start
- the first nodeend
- the node to which distance is computed.
public double length(VirtualHalfEdge2D ot)
length
in interface Calculus
ot
- the edge being evaluated
public double[] getBounds2D(Vertex2D vm)
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.
getBounds2D
in interface Calculus
vm
- the vertex on which metrics is evaluated
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |