|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Punto3D
public class Punto3D
Constructor Summary | |
---|---|
Punto3D(double longitud,
double latitud)
Un punto en la superficie de una esfera de radio 1. |
|
Punto3D(double x,
double y,
double z)
Coordenadas. |
|
Punto3D(String coordenadas)
Determina un punto en una esfera de radio 1, dadas su longitud y latitud. |
Method Summary | |
---|---|
double |
distancia(Punto3D punto)
Teorema de Pitagoras. |
double |
getLatitud()
Getter. |
double |
getLongitud()
Getter. |
double |
getX()
Getter. |
double |
getY()
Getter. |
double |
getZ()
Getter. |
String |
toString()
Pinta el punto. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Punto3D(double longitud, double latitud)
longitud
- distancia al este del meridiano de Greenwich (radianes).latitud
- distancia al norte del ecuador (radianes).public Punto3D(double x, double y, double z)
x
- eje X.y
- eje Y.z
- eje Z.public Punto3D(String coordenadas)
coordenadas
- longitud y latitudMethod Detail |
---|
public double distancia(Punto3D punto)
punto
- otro punto.
public double getLatitud()
public double getLongitud()
public double getX()
public double getY()
public double getZ()
public String toString()
toString
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |