|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.beattl.gm3d.Tuple ch.beattl.gm3d.Point
public class Point
Eine Klasse zur Verwaltung von Punkten im 3D-Raum.
Field Summary |
---|
Fields inherited from class ch.beattl.gm3d.Tuple |
---|
x, y, z |
Constructor Summary | |
---|---|
Point()
Instanziert einen Punkt mit Koordinaten (0,0,0). |
|
Point(double x,
double y,
double z)
Instanziert einen Punkt mit Koordinaten (x,y,z). |
|
Point(Tuple t)
Instanziert einen neuen Punkt anhand des Tupels t. |
Method Summary | |
---|---|
double |
distance(Point P)
Gibt den Abstand des Punktes P vom aktuellen Punkt aus. |
double |
distanceSquared(Point P)
Gibt das Quadrat des Abstandes des Punktes P vom aktuellen Punkt aus. |
Methods inherited from class ch.beattl.gm3d.Tuple |
---|
getX, getY, getZ, scale, set, setX, setY, setZ |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Point(double x, double y, double z)
x
- neue x-Koordinatey
- neue y-Koordinatez
- neue z-Koordinatepublic Point(Tuple t)
t
- Tupel tpublic Point()
Method Detail |
---|
public double distanceSquared(Point P)
P
- Punkt P
public double distance(Point P)
P
- Punkt P
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |