org.jcae.mesh.amibe.util
Class LongLong

java.lang.Object
  extended by org.jcae.mesh.amibe.util.LongLong

public class LongLong
extends java.lang.Object

This class implements a 'long long' type for exact geometrical computations. As Java has no unsigned types, this is quite tricky, but fortunately integer coordinates are in the range [0;2^30] and atomic long values are in [-2^60;2^60]. When LongLong have to be added, they must be of opposite sign so that this range is not bypassed.


Constructor Summary
LongLong(long l1, long l2)
           
 
Method Summary
 void add(LongLong that)
           
 boolean isNegative()
           
 boolean isPositive()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LongLong

public LongLong(long l1,
                long l2)
Method Detail

add

public void add(LongLong that)

isNegative

public boolean isNegative()

isPositive

public boolean isPositive()

toString

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