|
ImageScience 3.0.0 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectimagescience.shape.Point
public class Point
A point in 5D space.
Field Summary | |
---|---|
double |
c
The c-coordinate of the point. |
double |
t
The t-coordinate of the point. |
double |
x
The x-coordinate of the point. |
double |
y
The y-coordinate of the point. |
double |
z
The z-coordinate of the point. |
Constructor Summary | |
---|---|
Point()
Default constructor. |
|
Point(double x)
One-dimensional constructor. |
|
Point(double x,
double y)
Two-dimensional constructor. |
|
Point(double x,
double y,
double z)
Three-dimensional constructor. |
|
Point(double x,
double y,
double z,
double t)
Four-dimensional constructor. |
|
Point(double x,
double y,
double z,
double t,
double c)
Five-dimensional constructor. |
|
Point(Point point)
Copy constructor. |
Method Summary | |
---|---|
Point |
duplicate()
Returns an exact copy of this object. |
boolean |
equals(Point point)
Indicates whether this object represents the same point as the given object. |
void |
set(double x)
Sets the one-dimensional position of the point. |
void |
set(double x,
double y)
Sets the two-dimensional position of the point. |
void |
set(double x,
double y,
double z)
Sets the three-dimensional position of the point. |
void |
set(double x,
double y,
double z,
double t)
Sets the four-dimensional position of the point. |
void |
set(double x,
double y,
double z,
double t,
double c)
Sets the five-dimensional position of the point. |
void |
set(Point point)
Sets the coordinates of this point to the coordinates of the given point. |
void |
translate(double dx)
Translates the point in one dimension. |
void |
translate(double dx,
double dy)
Translates the point in two dimensions. |
void |
translate(double dx,
double dy,
double dz)
Translates the point in three dimensions. |
void |
translate(double dx,
double dy,
double dz,
double dt)
Translates the point in four dimensions. |
void |
translate(double dx,
double dy,
double dz,
double dt,
double dc)
Translates the point in five dimensions. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double x
0
.
public double y
0
.
public double z
0
.
public double t
0
.
public double c
0
.
Constructor Detail |
---|
public Point()
public Point(double x)
x
- The x-coordinate.public Point(double x, double y)
x
- The x-coordinate.y
- The y-coordinate.public Point(double x, double y, double z)
x
- The x-coordinate.y
- The y-coordinate.z
- The z-coordinate.public Point(double x, double y, double z, double t)
x
- The x-coordinate.y
- The y-coordinate.z
- The z-coordinate.t
- The t-coordinate.public Point(double x, double y, double z, double t, double c)
x
- The x-coordinate.y
- The y-coordinate.z
- The z-coordinate.t
- The t-coordinate.c
- The c-coordinate.public Point(Point point)
point
- The point to be copied. All information is copied and no memory is shared with this point.
java.lang.NullPointerException
- If point
is null
.Method Detail |
---|
public void set(double x)
x
- The x-coordinate.public void set(double x, double y)
x
- The x-coordinate.y
- The y-coordinate.public void set(double x, double y, double z)
x
- The x-coordinate.y
- The y-coordinate.z
- The z-coordinate.public void set(double x, double y, double z, double t)
x
- The x-coordinate.y
- The y-coordinate.z
- The z-coordinate.t
- The t-coordinate.public void set(double x, double y, double z, double t, double c)
x
- The x-coordinate.y
- The y-coordinate.z
- The z-coordinate.t
- The t-coordinate.c
- The c-coordinate.public void set(Point point)
point
- The point whose coordinates are to be copied.
java.lang.NullPointerException
- If point
is null
.public void translate(double dx)
dx
- The distance in the x-dimension over which to translate.public void translate(double dx, double dy)
dx
- The distance in the x-dimension over which to translate.dy
- The distance in the y-dimension over which to translate.public void translate(double dx, double dy, double dz)
dx
- The distance in the x-dimension over which to translate.dy
- The distance in the y-dimension over which to translate.dz
- The distance in the z-dimension over which to translate.public void translate(double dx, double dy, double dz, double dt)
dx
- The distance in the x-dimension over which to translate.dy
- The distance in the y-dimension over which to translate.dz
- The distance in the z-dimension over which to translate.dt
- The distance in the t-dimension over which to translate.public void translate(double dx, double dy, double dz, double dt, double dc)
dx
- The distance in the x-dimension over which to translate.dy
- The distance in the y-dimension over which to translate.dz
- The distance in the z-dimension over which to translate.dt
- The distance in the t-dimension over which to translate.dc
- The distance in the c-dimension over which to translate.public Point duplicate()
public boolean equals(Point point)
point
- The point to compare this point with.
true
if point
is not null
, and each of its coordinates is equal to the corresponding coordinate of this object, or false
if this is not the case.
|
ImageScience 3.0.0 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (C) Erik Meijering. Permission to use this software and corresponding documentation for educational, research, and not-for-profit purposes, without a fee and without a signed licensing agreement, is granted, subject to the following terms and conditions.
IT IS NOT ALLOWED TO REDISTRIBUTE, SELL, OR LEASE THIS SOFTWARE, OR DERIVATIVE WORKS THEREOF, WITHOUT PERMISSION IN WRITING FROM THE COPYRIGHT HOLDER. THE COPYRIGHT HOLDER IS FREE TO MAKE VERSIONS OF THE SOFTWARE AVAILABLE FOR A FEE OR COMMERCIALLY ONLY.
IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OF ANY KIND WHATSOEVER, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE EXPRESS OR IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE AND CORRESPONDING DOCUMENTATION IS PROVIDED "AS IS". THE COPYRIGHT HOLDER HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.