Package org.rcsb.strucmotif.domain
Class Transformation
java.lang.Object
org.rcsb.strucmotif.domain.Transformation
A transformation described by a 4x4 matrix.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float[][]Neutral/identity transformation.static final Transformation -
Method Summary
Modifier and TypeMethodDescriptionfloat[]The flattened transformation operation (row-major indexing).float[][]The actual transformation matrix.static Transformationof(float[][] transformation) voidtransform(float[] out, float[] v) Transform a vector.
-
Field Details
-
IDENTITY_MATRIX_4D
public static final float[][] IDENTITY_MATRIX_4DNeutral/identity transformation. -
IDENTITY_TRANSFORMATION
-
-
Method Details
-
of
-
getTransformationMatrix
public float[][] getTransformationMatrix()The actual transformation matrix.- Returns:
- a 4x4 transformation matrix
-
getFlattenedTransformation
public float[] getFlattenedTransformation()The flattened transformation operation (row-major indexing).- Returns:
- a vector of 16 values
-
transform
public void transform(float[] out, float[] v) Transform a vector.- Parameters:
out- the outputv- the vector to transform
-