|
CubeTwister 2.0alpha142 2012-02-11 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.randelshofer.geom3d.Point3D
public class Point3D
A point representing a location in (x, y, z) coordinate space.
| Field Summary | |
|---|---|
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 | |
|---|---|
Point3D()
Constructs and initializes a Point with 0, 0, 0. |
|
Point3D(double x,
double y,
double z)
Constructs and initializes a Point with the specified coordinates. |
|
| Method Summary | |
|---|---|
Point3D |
clone()
|
static double |
dotProduct(Point3D a,
Point3D b)
dotProduct product of 2 vectors. |
double |
getX()
Returns the X coordinate of the point in double precision. |
double |
getY()
Returns the Y coordinate of the point in double precision. |
double |
getZ()
Returns the Z coordinate of the point in double precision. |
double |
length()
Length of this vector. |
Point3D |
normalize()
Normalizes the vector. |
static double[] |
planeEquation(Point3D v1,
Point3D v2,
Point3D v3)
Computes the plane equation a*x + b*y + c*z + d = 0 from three given points in space. |
static Point3D |
sub(Point3D a,
Point3D b)
subtracts 2 vectors. |
java.lang.String |
toString()
Returns a String that represents the value of this Object. |
static Point3D |
vectorProduct(Point3D a,
Point3D b)
returns a x b. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public double x
public double y
public double z
| Constructor Detail |
|---|
public Point3D()
public Point3D(double x,
double y,
double z)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic double getX()
public double getY()
public double getZ()
public static double[] planeEquation(Point3D v1,
Point3D v2,
Point3D v3)
v1 - v2 - v3 -
public static Point3D vectorProduct(Point3D a,
Point3D b)
public static double dotProduct(Point3D a,
Point3D b)
public static Point3D sub(Point3D a,
Point3D b)
public Point3D normalize()
public double length()
public Point3D clone()
clone in class java.lang.Object
|
(c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||