|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.vecmath.Tuple3d javax.vecmath.Vector3d javax.robotics.vecmath.RVector3d
public class RVector3d
A 3-element vector that is represented by double-precision floating point x,y,z coordinates. If this value represents a normal, then it should be normalized. This class extend printing functionality of Vector3d class.
Field Summary |
---|
Fields inherited from class javax.vecmath.Tuple3d |
---|
x, y, z |
Constructor Summary | |
---|---|
RVector3d()
Constructs and initializes a RVector3d to (0,0,0). |
|
RVector3d(double[] vector)
Constructs and initializes a RVector3d from the array of length 3. |
|
RVector3d(double x,
double y,
double z)
Constructs and initializes a RVector3d from the specified xyz coordinates. |
|
RVector3d(RVector3d vector)
Constructs and initializes a RVector3d from the specified RVector3d. |
|
RVector3d(javax.vecmath.Vector3d vector)
Constructs and initializes a RVector3d from the specified Vector3d. |
Method Summary | |
---|---|
void |
mul(DMatrix D,
RVector3d v)
Multiplies diagonal matrix D times RVector v and places the result into this vector (this = D*v). |
void |
mul(RMatrix3d m,
RVector3d v)
Multiplies matrix m times RVector v and places the result into this vector (this = m*v). |
void |
printf()
Prints to standard out |
void |
printf(java.io.PrintStream out)
Prints to PrintStream |
void |
printf(java.io.PrintStream out,
java.lang.String format)
Prints to PrintStream according to the format string |
void |
printf(java.lang.String format)
Prints to standard out according to the format string. |
java.lang.String |
toString()
Returns a string that contains the values of this RVector. |
java.lang.String |
toString(java.lang.String format)
Returns a string that contains the values of this RVector, according to the format string |
Methods inherited from class javax.vecmath.Vector3d |
---|
angle, cross, dot, length, lengthSquared, normalize, normalize |
Methods inherited from class javax.vecmath.Tuple3d |
---|
absolute, absolute, add, add, clamp, clamp, clamp, clamp, clampMax, clampMax, clampMax, clampMax, clampMin, clampMin, clampMin, clampMin, clone, epsilonEquals, equals, equals, get, get, hashCode, interpolate, interpolate, interpolate, interpolate, negate, negate, scale, scale, scaleAdd, scaleAdd, scaleAdd, set, set, set, set, sub, sub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RVector3d(RVector3d vector)
vector
- the RVector3d containing the initialization x y z datapublic RVector3d(javax.vecmath.Vector3d vector)
vector
- the Vector3d containing the initialization x y z datapublic RVector3d(double[] vector)
vector
- the array of length 3 containing xyz in orderpublic RVector3d(double x, double y, double z)
x
- the x coordinatey
- the y coordinatez
- the z coordinatepublic RVector3d()
Method Detail |
---|
public void mul(RMatrix3d m, RVector3d v)
m
- the input matrixv
- the input vectorpublic void printf()
public void printf(java.lang.String format)
The format specifiers for numeric types have the following syntax:
%[width][.precision]conversion
width
is a non-negative decimal
integer indicating the minimum number of characters to be written to the
output. precision
is a non-negative
decimal integer usually used to restrict the number of characters. The
specific behavior depends on the conversion. conversion
is a character
indicating how the argument should be formatted. The set of valid
conversions for a given argument depends on the argument's data type.
Example: v.printf("%5.3f");
format
- The format stringPrintStream.format(java.lang.String, java.lang.Object[])
public void printf(java.io.PrintStream out)
PrintStream
out
- The PrintStream
object.public void printf(java.io.PrintStream out, java.lang.String format)
PrintStream
according to the format string
out
- The PrintStream
object.format
- The format string.printf(String)
public java.lang.String toString()
toString
in class javax.vecmath.Tuple3d
public java.lang.String toString(java.lang.String format)
format
- The format string
printf(String)
public void mul(DMatrix D, RVector3d v)
D
- The diagonal matrix in the multiplicationv
- The vector that is multiplied
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |