net.von_gagern.martin.confoo.mesh
Class TriangleInequalityException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.von_gagern.martin.confoo.mesh.MeshException
net.von_gagern.martin.confoo.mesh.TriangleInequalityException
- All Implemented Interfaces:
- Serializable, CorneredTriangle<Object>
public class TriangleInequalityException
- extends MeshException
- implements CorneredTriangle<Object>
Violation of triangle inequality.
The triangle inequality states that for any three edges a,
b and c of a triangle, a <= b +
c always holds.
Applications relying on the triangle inequality in a
MetricMesh should throw this exception if the triangle
inequality was violated. Algorithms transforming a mesh may throw
it as well if the resulting mesh would violate the triangle
inequality.
- Since:
- 1.0
- Author:
- Martin von Gagern
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
TriangleInequalityException
public TriangleInequalityException(Object rep1,
Object rep2,
Object rep3)
getCorner
public Object getCorner(int i)
- Description copied from interface:
CorneredTriangle
- Get specified corner.
- Specified by:
getCorner in interface CorneredTriangle<Object>
- Parameters:
i - the index of the corner requested
- Returns:
- an object identifying the requested corner
Copyright © 2008 Martin von Gagern. All Rights Reserved.