gdxapp4d/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/GroßGetậl6ˢᴰ.java

54 lines
1.6 KiB
Java
Raw Normal View History

2022-01-30 21:00:16 +00:00
package love.distributedrebirth.numberxd;
2022-01-30 20:50:19 +00:00
import love.distributedrebirth.numberxd.base2t.part.T12PartUncial;
2022-02-04 17:00:03 +00:00
import love.distributedrebirth.numberxd.base2t.part.T16PartHex;
import love.distributedrebirth.numberxd.base2t.type.V009Tyte;
import love.distributedrebirth.numberxd.base2t.type.V144Tocta;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
import love.distributedrebirth.numberxd.base2t.BaseIteratorOctal;
2022-02-04 17:00:03 +00:00
import love.distributedrebirth.numberxd.base2t.BaseIteratorOctalStack;
2022-01-30 20:50:19 +00:00
/**
* Holds an 864 bit fraction.
2022-01-30 20:50:19 +00:00
*/
2022-02-04 17:00:03 +00:00
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class GroßGetậl6ˢᴰ extends AbstractBaseGetậlMatrix2<GroßGetậl6ˢᴰ,V009Tyte> {
2022-01-30 20:50:19 +00:00
2022-02-04 17:00:03 +00:00
private final V144Tocta[] values = new V144Tocta[T12PartUncial.LENGTH()];
2022-01-30 20:50:19 +00:00
public GroßGetậl6ˢᴰ() {
2022-01-31 19:13:41 +00:00
for (int i=0;i<this.values.length;i++) {
2022-02-04 17:00:03 +00:00
this.values[i] = new V144Tocta();
2022-01-30 20:50:19 +00:00
}
}
public GroßGetậl6ˢᴰ(BaseIteratorOctal values) {
2022-01-31 19:13:41 +00:00
for (int i=0;i<this.values.length;i++) {
2022-02-04 17:00:03 +00:00
this.values[i] = new V144Tocta(values);
2022-01-30 20:50:19 +00:00
}
}
2022-02-04 17:00:03 +00:00
public V009Tyte getValue() {
return values[matrix2].getTytePart(T16PartHex.values()[matrix1]);
2022-01-30 20:50:19 +00:00
}
2022-02-04 17:00:03 +00:00
@Override
public int getMatrix1Length() {
2022-02-04 17:00:03 +00:00
return T16PartHex.LENGTH();
2022-01-30 20:50:19 +00:00
}
@Override
public int getMatrix2Length() {
2022-02-04 17:00:03 +00:00
return T12PartUncial.LENGTH();
2022-01-30 20:50:19 +00:00
}
2022-02-04 17:00:03 +00:00
2022-01-30 20:50:19 +00:00
@Override
public GroßGetậl6ˢᴰ toClone() {
2022-02-04 17:00:03 +00:00
BaseIteratorOctalStack cloneStack = new BaseIteratorOctalStack();
for (int i=0;i<this.values.length;i++) {
cloneStack.addIterator(this.values[i].iteratorOctalsByClone());
}
return new GroßGetậl6ˢᴰ(cloneStack);
2022-01-30 20:50:19 +00:00
}
}