base
Class PontoDouble

java.lang.Object
  extended by base.Ponto
      extended by base.PontoDouble

public class PontoDouble
extends Ponto

Classe que representa um par ordenado real

See Also:
Ponto, PontoNatural

Field Summary
 double i
          coordenadas
 double j
           
 
Constructor Summary
PontoDouble(double u, double v)
          Permite quaisquer valores
 
Method Summary
protected  void defineI(double i)
           
protected  void defineJ(double j)
           
protected  double pegaI()
          É usado o tipo primitivo double pois ele "contém" o tipo int
protected  double pegaJ()
           
 
Methods inherited from class base.Ponto
igual, normaEuclidiana, soma, subtrai, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

i

public double i
coordenadas


j

public double j
Constructor Detail

PontoDouble

public PontoDouble(double u,
                   double v)
Permite quaisquer valores

Parameters:
u - coordenada i
v - coordenada j
Method Detail

pegaI

protected double pegaI()
Description copied from class: Ponto
É usado o tipo primitivo double pois ele "contém" o tipo int

Specified by:
pegaI in class Ponto
Returns:
devolve a primeira coordenada

pegaJ

protected double pegaJ()
Specified by:
pegaJ in class Ponto
Returns:
devolve a segunda coordenada

defineI

protected void defineI(double i)
Specified by:
defineI in class Ponto

defineJ

protected void defineJ(double j)
Specified by:
defineJ in class Ponto