edu.jhu.ece.iacl.jist.structures.geom
Class TriangleSigned

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.structures.geom.TriangleSigned

public class TriangleSigned
extends java.lang.Object

Created by IntelliJ IDEA. User: bennett Date: Nov 20, 2005 Time: 9:28:30 AM To change this template use Options | File Templates. ************************************ Magnetic Resonance in Medicine Final Project Released: December 1, 2005 class Triangle Represent a triangle Copyright (C) 2005 Bennett Landman, bennett@bme.jhu.edu


Field Summary
static float EPS
          The EPS.
 PT[] pts
          The pts.
 
Constructor Summary
TriangleSigned(PT a, PT b, PT c)
          Instantiates a new triangle signed.
 
Method Summary
 boolean contains(PT p)
          Contains.
 IntersectResult findIntersect(PT a, PT b)
          Find intersect.
 boolean intersect(PT a, PT b)
          Intersect.
 int volumeSign(PT a, PT b, PT c, PT d)
          Volume sign.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EPS

public static float EPS
The EPS.


pts

public PT[] pts
The pts.

Constructor Detail

TriangleSigned

public TriangleSigned(PT a,
                      PT b,
                      PT c)
Instantiates a new triangle signed.

Parameters:
a - the a
b - the b
c - the c
Method Detail

intersect

public boolean intersect(PT a,
                         PT b)
                  throws DegenerateIntersectionException
Intersect.

Parameters:
a - the a
b - the b
Returns:
true, if successful
Throws:
DegenerateIntersectionException - the degenerate intersection exception

findIntersect

public IntersectResult findIntersect(PT a,
                                     PT b)
                              throws DegenerateIntersectionException
Find intersect.

Parameters:
a - the a
b - the b
Returns:
the intersect result
Throws:
DegenerateIntersectionException - the degenerate intersection exception

volumeSign

public int volumeSign(PT a,
                      PT b,
                      PT c,
                      PT d)
Volume sign.

Parameters:
a - the a
b - the b
c - the c
d - the d
Returns:
the int

contains

public boolean contains(PT p)
Contains.

Parameters:
p - the p
Returns:
true, if successful