Class DistanceMeter

java.lang.Object
  |
  +--DistanceMeter

public class DistanceMeter
extends java.lang.Object

Title: DistanceMeter Description: This class is used to measure the distance between a given area and a Point

Author:
Dimitri Missoh, Daniel Schlosser

Field Summary
private  double[] backup
           
private  double[] faktoren
           
private  int[] indexA
           
private  double[] results
           
private  double[] values
           
 
Constructor Summary
DistanceMeter(javax.vecmath.Vector3d a, javax.vecmath.Vector3d b, javax.vecmath.Vector3d c)
          Creates a DistanceMeter using 3 points to calculate a 2 dimensional Area in 3d worldspace.
 
Method Summary
 double getDistance(javax.vecmath.Vector3d ov)
          This function calculates the distance between a given point and the area used to create DistanceMeter
private  boolean testlinearab(javax.vecmath.Vector3d a, javax.vecmath.Vector3d b)
          This function tests if the two given vectors are pointing to the same direction
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

values

private double[] values

results

private double[] results

faktoren

private double[] faktoren

backup

private double[] backup

indexA

private int[] indexA
Constructor Detail

DistanceMeter

public DistanceMeter(javax.vecmath.Vector3d a,
                     javax.vecmath.Vector3d b,
                     javax.vecmath.Vector3d c)
Creates a DistanceMeter using 3 points to calculate a 2 dimensional Area in 3d worldspace. Then we calculate some numbers to calculate the distance of a given point without solving the equation system
Parameters:
a - vector describing first point
b - vector describing second point
c - vector describing third point
Method Detail

testlinearab

private boolean testlinearab(javax.vecmath.Vector3d a,
                             javax.vecmath.Vector3d b)
This function tests if the two given vectors are pointing to the same direction

getDistance

public double getDistance(javax.vecmath.Vector3d ov)
This function calculates the distance between a given point and the area used to create DistanceMeter
Parameters:
ov - the 'Ortsvektor' of the point