mikera.transformz.impl.IdentityTranslation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vectorz Show documentation
Show all versions of vectorz Show documentation
Fast double-precision vector and matrix maths library for Java, supporting N-dimensional numeric arrays.
package mikera.transformz.impl;
import mikera.matrixx.AMatrix;
import mikera.matrixx.Matrixx;
import mikera.randomz.Hash;
import mikera.transformz.ATranslation;
import mikera.vectorz.AVector;
import mikera.vectorz.Vector;
import mikera.vectorz.Vectorz;
/**
* Immutable identity translation
*
* @author Mike
*
*/
public final class IdentityTranslation extends ATranslation {
private static final int INSTANCE_COUNT=6;
private final int dimensions;
private IdentityTranslation(int dims) {
this.dimensions=dims;
}
private static final IdentityTranslation[] INSTANCES=new IdentityTranslation[INSTANCE_COUNT];
static {
for (int i=0; i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy