public class Point3D extends Object
| Constructor and Description |
|---|
Point3D()
Creates a new point located at the origin.
|
Point3D(double x,
double y,
double z)
Creates a new point at the specified coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
double |
distance(Point3D point)
Computes the euclidean distance to another point.
|
double |
getX() |
double |
getY() |
double |
getZ() |
public Point3D()
public Point3D(double x,
double y,
double z)
x - the X-coordinate of the pointy - the Y-coordinate of the pointz - the Z-coordinate of the pointpublic double distance(Point3D point)
point - the other pointpublic double getX()
public double getY()
public double getZ()
Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.