|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.vecmath.Tuple4d
javax.vecmath.Vector4d
javax.robotics.vecmath.RVector4d
public class RVector4d
A 4-element vector represented by double-precision floating point x,y,z,w coordinates. This class extend printing functionality of Vector4d class.
| Field Summary |
|---|
| Fields inherited from class javax.vecmath.Tuple4d |
|---|
w, x, y, z |
| Constructor Summary | |
|---|---|
RVector4d()
Constructs and initializes a RVector4d to (0,0,0,0). |
|
RVector4d(double[] vector)
Constructs and initializes a RVector4d from the coordinates contained in the array. |
|
RVector4d(double x,
double y,
double z,
double w)
Constructs and initializes a RVector4d from the specified xyzw coordinates. |
|
RVector4d(RVector4d vector)
Constructs and initializes a RVector4d from the specified RVector4d. |
|
RVector4d(javax.vecmath.Vector4d vector)
Constructs and initializes a RVector4d from the specified Vector4d. |
|
| Method Summary | |
|---|---|
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.Vector4d |
|---|
angle, dot, length, lengthSquared, normalize, normalize, set |
| Methods inherited from class javax.vecmath.Tuple4d |
|---|
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 RVector4d()
public RVector4d(RVector4d vector)
vector - the RVector4d containing the initialization x y z w datapublic RVector4d(javax.vecmath.Vector4d vector)
vector - the Vector4d containing the initialization x y z w datapublic RVector4d(double[] vector)
vector - the array of length 4 containing x y z w in order
public RVector4d(double x,
double y,
double z,
double w)
x - the x coordinatey - the y coordinatez - the z coordinatew - the w coordinate| Method Detail |
|---|
public 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.Tuple4dpublic java.lang.String toString(java.lang.String format)
format - The format string
printf(String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||