Logo Search packages:      
Sourcecode: wims version File versions

double geo::pt::Distance ( pt  A  )  [inline]

Donne la distance du point A au point courant.

Definition at line 128 of file pt.java.

References geo::ObjetRepere::defini, x, and y.

   { if (defini && A.defini)
       { double dx = x - A.x ; double dy = y - A.y ;
         return Math.sqrt(dx * dx + dy * dy) ;
       }
     else return -1.0 ; }


Generated by  Doxygen 1.6.0   Back to index