org.ros.rosjava_geometry
Class Vector3
java.lang.Object
org.ros.rosjava_geometry.Vector3
public class Vector3
- extends java.lang.Object
A three dimensional vector.
Constructor Summary |
Vector3(double x,
double y,
double z)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Vector3
public Vector3(double x,
double y,
double z)
add
public Vector3 add(Vector3 other)
subtract
public Vector3 subtract(Vector3 other)
invert
public Vector3 invert()
dotProduct
public double dotProduct(Vector3 other)
length
public double length()
normalized
public Vector3 normalized()
toVector3Message
public geometry_msgs.Vector3 toVector3Message(geometry_msgs.Vector3 result)
toPointMessage
public geometry_msgs.Point toPointMessage(geometry_msgs.Point result)
getX
public double getX()
setX
public void setX(double x)
getY
public double getY()
setY
public void setY(double y)
getZ
public double getZ()
setZ
public void setZ(double z)
newFromVector3Message
public static Vector3 newFromVector3Message(geometry_msgs.Vector3 message)
newFromPointMessage
public static Vector3 newFromPointMessage(geometry_msgs.Point message)
newIdentityVector3
public static Vector3 newIdentityVector3()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object