|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbelka.geom.GeometryUtil
public class GeometryUtil
The class does simple geometric calculations.
Constructor Summary | |
---|---|
GeometryUtil()
|
Method Summary | |
---|---|
static double[][] |
invert(double[][] matrix)
Function inverts given matrix. |
static double[] |
multiply(double[][] matrix,
double[] vect)
Function multiplies given matrix and vector. |
static double[][] |
multiply(double[][] matrix1,
double[][] matrix2)
Function multiplies two given matrices. |
static double[] |
multiply(double[] vect,
double[][] matrix)
Function multiplies given matrix and vector. |
static double[][] |
substract(double[][] matrix1,
double[][] matrix2)
Function substracts two given matrices. |
static double[] |
substract(double[] vect1,
double[] vect2)
Function substracts two given vectors. |
static double[] |
summ(double[] vect1,
double[] vect2)
Function summs two given vectors. |
static double[] |
transform(double[][] rot,
double[] trans,
double[] vect)
Function transforms vector by given rotation matrix and translation vectory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeometryUtil()
Method Detail |
---|
public static double[] transform(double[][] rot, double[] trans, double[] vect)
rot
- rotation matrix.trans
- translation vector.vect
- vector to be transformed.
public static double[] substract(double[] vect1, double[] vect2)
vect1
- first vector.vect2
- second vector.
public static double[][] substract(double[][] matrix1, double[][] matrix2)
matrix1
- first matrix.matrix2
- second matrix.
public static double[] summ(double[] vect1, double[] vect2)
vect1
- first vector.vect2
- second vector.
public static double[][] multiply(double[][] matrix1, double[][] matrix2)
matrix1
- first matrix.matrix2
- second matrix.
public static double[] multiply(double[][] matrix, double[] vect)
matrix
- matrix.vect
- vector.
public static double[] multiply(double[] vect, double[][] matrix)
vect
- vector.matrix
- matrix.
public static double[][] invert(double[][] matrix)
matrix
- matrix to be inverted
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |