org.ros.rosjava_geometry
Class Vector3

java.lang.Object
  extended by 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)
           
 
Method Summary
 Vector3 add(Vector3 other)
           
 double dotProduct(Vector3 other)
           
 boolean equals(java.lang.Object obj)
           
 double getX()
           
 double getY()
           
 double getZ()
           
 int hashCode()
           
 Vector3 invert()
           
 double length()
           
static Vector3 newFromPointMessage(geometry_msgs.Point message)
           
static Vector3 newFromVector3Message(geometry_msgs.Vector3 message)
           
static Vector3 newIdentityVector3()
           
 Vector3 normalized()
           
 void setX(double x)
           
 void setY(double y)
           
 void setZ(double z)
           
 Vector3 subtract(Vector3 other)
           
 geometry_msgs.Point toPointMessage(geometry_msgs.Point result)
           
 java.lang.String toString()
           
 geometry_msgs.Vector3 toVector3Message(geometry_msgs.Vector3 result)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Vector3

public Vector3(double x,
               double y,
               double z)
Method Detail

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