|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.math.geometry.MatrixBuilder
public class MatrixBuilder
A mutable builder class for matrices. To construct a matrix call the toMatrix() method.
| Constructor Summary | |
|---|---|
MatrixBuilder()
Creates a new instance of a MatrixBuilder, with all elements initialized to zero. |
|
MatrixBuilder(Matrix initial)
Creates a new instance of a MatrixBuilder, with the elements initialized to the elements of the given matrix. |
|
| Method Summary | |
|---|---|
void |
set(int row,
int col,
double value)
Sets the matrix element at the specified position to the given value. |
void |
setColumn(int colIndex,
Vector3D colValues)
Sets the matrix elements in the column of the given index to the values in the given vector. |
void |
setElement00(double value)
Sets a specific matrix element to the given value. |
void |
setElement01(double value)
Sets a specific matrix element to the given value. |
void |
setElement02(double value)
Sets a specific matrix element to the given value. |
void |
setElement10(double value)
Sets a specific matrix element to the given value. |
void |
setElement11(double value)
Sets a specific matrix element to the given value. |
void |
setElement12(double value)
Sets a specific matrix element to the given value. |
void |
setElement20(double value)
Sets a specific matrix element to the given value. |
void |
setElement21(double value)
Sets a specific matrix element to the given value. |
void |
setElement22(double value)
Sets a specific matrix element to the given value. |
Matrix |
toMatrix()
Returns a new Matrix instance from the values of this MatrixBuilder. |
String |
toString()
Returns the textual representation of current value of the MatrixBuilder in the same way as
Matrix.toString(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MatrixBuilder()
public MatrixBuilder(Matrix initial)
initial - initial value for the MatrixBuilder| Method Detail |
|---|
public void setElement00(double value)
value - the new value for the elementpublic void setElement10(double value)
value - the new value for the elementpublic void setElement20(double value)
value - the new value for the elementpublic void setElement01(double value)
value - the new value for the elementpublic void setElement11(double value)
value - the new value for the elementpublic void setElement21(double value)
value - the new value for the elementpublic void setElement02(double value)
value - the new value for the elementpublic void setElement12(double value)
value - the new value for the elementpublic void setElement22(double value)
value - the new value for the element
public void set(int row,
int col,
double value)
row - The row of the position. Must be between 0 and 2.col - The column of the position. Must be between 0 and 2.value - the value to be set for the position
IndexOutOfBoundsException - illegal index
public void setColumn(int colIndex,
Vector3D colValues)
colIndex - The index of the column. Must be between 0 and 2.colValues - The values to be set in the column.
IndexOutOfBoundsException - illegal indexpublic Matrix toMatrix()
public String toString()
MatrixBuilder in the same way as
Matrix.toString().
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||