cz.cuni.utils.math
Class HalfLine2D

java.lang.Object
  extended by cz.cuni.utils.math.HalfLine2D

public class HalfLine2D
extends java.lang.Object


Field Summary
 Tuple2D direction
           
 Tuple2D pointBegin
           
 Tuple2D pointDirection
           
 
Constructor Summary
HalfLine2D(Tuple2D iPointBegin, Tuple2D iPointDirection)
           
 
Method Summary
 boolean inHalfLine(Tuple2D testedPoint)
          Test wether point lies inside a half line.
 boolean inHalfLine(Tuple2D testedPoint, double precision)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pointBegin

public Tuple2D pointBegin

pointDirection

public Tuple2D pointDirection

direction

public Tuple2D direction
Constructor Detail

HalfLine2D

public HalfLine2D(Tuple2D iPointBegin,
                  Tuple2D iPointDirection)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

inHalfLine

public boolean inHalfLine(Tuple2D testedPoint)
Test wether point lies inside a half line.

Parameters:
testedPoint -

inHalfLine

public boolean inHalfLine(Tuple2D testedPoint,
                          double precision)