All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mikera.transformz.impl.IdentityTranslation Maven / Gradle / Ivy

Go to download

Fast double-precision vector and matrix maths library for Java, supporting N-dimensional numeric arrays.

There is a newer version: 0.67.0
Show newest version
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