public class Point
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Point(double x,
double y,
double z,
double roll,
double pitch,
double yaw)
A 6 dimensional vector representing the 6 degrees of freedom in space.
|
Point(Point copy) |
Modifier and Type | Method and Description |
---|---|
Point |
add(Point p)
add the x,y,z,roll,pitch,yaw of the point passed in, to the current point.
|
java.lang.Double |
distanceTo(Point point) |
boolean |
equals(java.lang.Object obj) |
double |
getPitch() |
double |
getRoll() |
double |
getX() |
double |
getY() |
double |
getYaw() |
double |
getZ() |
int |
hashCode() |
double |
magnitude() |
Point |
multiplyXYZ(double xyzScale)
return a new point with the x,y,z values multipled by the xyzScale
|
void |
setPitch(double pitch) |
void |
setRoll(double roll) |
void |
setX(double x) |
void |
setY(double y) |
void |
setYaw(double yaw) |
void |
setZ(double z) |
Point |
subtract(Point p) |
java.lang.String |
toString() |
Point |
unitVector(double unitSize) |
public Point(double x, double y, double z, double roll, double pitch, double yaw)
x
- - left / right axisy
- - up / down axisz
- - forward / backward axisroll
- - rotation about the z axispitch
- - rotation about the x axisyaw
- - rotation about the y axispublic Point(Point copy)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public double getX()
public double getY()
public double getZ()
public double getRoll()
public double getPitch()
public double getYaw()
public int hashCode()
hashCode
in class java.lang.Object
public double magnitude()
public java.lang.String toString()
toString
in class java.lang.Object
public void setX(double x)
public void setY(double y)
public void setZ(double z)
public void setRoll(double roll)
public void setPitch(double pitch)
public void setYaw(double yaw)
public Point add(Point p)
p
- the point to be addedpublic Point multiplyXYZ(double xyzScale)
xyzScale
- the scaling (maintain aspect ratios)public java.lang.Double distanceTo(Point point)
public Point unitVector(double unitSize)