|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectejemplos.punto
ejemplos.punto3d
Title: Punto en 3D
Description: Utilizando Herencia crea la clase punto 3D a partir de la clase punto
Copyright: 2005
Company: UMNSH
Constructor Summary | |
punto3d()
Constructor nulo |
|
punto3d(double a,
double b,
double c)
Construye el punto [a, b, c] |
Method Summary | |
double |
distancia(punto3d a,
punto3d b)
Calcula la distancia entre los punto a y b |
void |
imprime(java.lang.String a)
Imprime el punto |
Methods inherited from class ejemplos.punto |
distancia |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public punto3d()
public punto3d(double a, double b, double c)
a
- doubleb
- doublec
- doubleMethod Detail |
public void imprime(java.lang.String a)
imprime
in class punto
a
- Stringpublic double distancia(punto3d a, punto3d b)
a
- punto3db
- punto3d
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |