Let matrix count from one and added the 4th.

This commit is contained in:
Willem 2022-02-04 21:26:43 +01:00
parent 6541a02041
commit 08de7c0f4f
20 changed files with 108 additions and 88 deletions

View file

@ -1,20 +0,0 @@
package love.distributedrebirth.numberxd;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
import love.distributedrebirth.numberxd.base2t.BaseNumber;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
abstract public class AbstractBaseGetậlLevel0<T extends BaseGetậl<T,V>,V extends BaseNumber<V>> implements BaseGetậlMatrix0<T,V> {
protected int matrix0;
@Override
public void setMatrix0(int matrix0) {
this.matrix0 = matrix0;
}
@Override
public int getMatrix0() {
return matrix0;
}
}

View file

@ -4,7 +4,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
import love.distributedrebirth.numberxd.base2t.BaseNumber;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
abstract public class AbstractBaseGetậlLevel1<T extends BaseGetậl<T,V>,V extends BaseNumber<V>> extends AbstractBaseGetậlLevel0<T,V> implements BaseGetậlMatrix1<T,V> {
abstract public class AbstractBaseGetậlMatrix1<T extends BaseGetậl<T,V>,V extends BaseNumber<V>> implements BaseGetậlMatrix1<T,V> {
protected int matrix1;

View file

@ -4,7 +4,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
import love.distributedrebirth.numberxd.base2t.BaseNumber;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
abstract public class AbstractBaseGetậlLevel2<T extends BaseGetậl<T,V>,V extends BaseNumber<V>> extends AbstractBaseGetậlLevel1<T,V> implements BaseGetậlMatrix2<T,V> {
abstract public class AbstractBaseGetậlMatrix2<T extends BaseGetậl<T,V>,V extends BaseNumber<V>> extends AbstractBaseGetậlMatrix1<T,V> implements BaseGetậlMatrix2<T,V> {
protected int matrix2;

View file

@ -0,0 +1,20 @@
package love.distributedrebirth.numberxd;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
import love.distributedrebirth.numberxd.base2t.BaseNumber;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
abstract public class AbstractBaseGetậlMatrix3<T extends BaseGetậl<T,V>,V extends BaseNumber<V>> extends AbstractBaseGetậlMatrix2<T,V> implements BaseGetậlMatrix3<T,V> {
protected int matrix3;
@Override
public void setMatrix3(int matrix3) {
this.matrix3 = matrix3;
}
@Override
public int getMatrix3() {
return matrix3;
}
}

View file

@ -0,0 +1,20 @@
package love.distributedrebirth.numberxd;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
import love.distributedrebirth.numberxd.base2t.BaseNumber;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
abstract public class AbstractBaseGetậlMatrix4<T extends BaseGetậl<T,V>,V extends BaseNumber<V>> extends AbstractBaseGetậlMatrix3<T,V> implements BaseGetậlMatrix4<T,V> {
protected int matrix4;
@Override
public void setMatrix4(int matrix4) {
this.matrix4 = matrix4;
}
@Override
public int getMatrix4() {
return matrix4;
}
}

View file

@ -7,7 +7,7 @@ import love.distributedrebirth.numberxd.base2t.type.V144Tocta;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
abstract public class AbstractGroßGetậlŌṁ1ⁿᴰ<T extends BaseGetậl<T,V009Tyte>> extends AbstractBaseGetậlLevel1<T,V009Tyte> {
abstract public class AbstractGroßGetậlŌṁ1ⁿᴰ<T extends BaseGetậl<T,V009Tyte>> extends AbstractBaseGetậlMatrix2<T,V009Tyte> {
private V144Tocta[] values;
private int valuesLength;
@ -34,7 +34,7 @@ abstract public class AbstractGroßGetậlŌṁ1ⁿᴰ<T extends BaseGetậl<T,V
abstract protected int resolveFractalLevel(int level);
public V009Tyte getValue() {
return values[matrix1].getTytePart(T16PartHex.values()[matrix0]);
return values[matrix2].getTytePart(T16PartHex.values()[matrix1]);
}
public int getFractalLevel() {
@ -42,12 +42,12 @@ abstract public class AbstractGroßGetậlŌṁ1ⁿᴰ<T extends BaseGetậl<T,V
}
@Override
public int getMatrix0Length() {
public int getMatrix1Length() {
return T16PartHex.LENGTH();
}
@Override
public int getMatrix1Length() {
public int getMatrix2Length() {
return valuesLength;
}
}

View file

@ -8,7 +8,7 @@ import love.distributedrebirth.numberxd.base2t.type.V144Tocta;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
abstract public class AbstractGroßGetậlŌṁ6ˢᴰ<T extends BaseGetậl<T,V009Tyte>> extends AbstractBaseGetậlLevel2<T,V009Tyte> {
abstract public class AbstractGroßGetậlŌṁ6ˢᴰ<T extends BaseGetậl<T,V009Tyte>> extends AbstractBaseGetậlMatrix3<T,V009Tyte> {
private V144Tocta[][] values;
private int valuesLength;
@ -39,7 +39,7 @@ abstract public class AbstractGroßGetậlŌṁ6ˢᴰ<T extends BaseGetậl<T,V0
abstract protected int resolveFractalLevel(int level);
public V009Tyte getValue() {
return values[matrix1][matrix2].getTytePart(T16PartHex.values()[matrix0]);
return values[matrix2][matrix3].getTytePart(T16PartHex.values()[matrix1]);
}
public int getFractalLevel() {
@ -47,17 +47,17 @@ abstract public class AbstractGroßGetậlŌṁ6ˢᴰ<T extends BaseGetậl<T,V0
}
@Override
public int getMatrix0Length() {
public int getMatrix1Length() {
return T16PartHex.LENGTH();
}
@Override
public int getMatrix1Length() {
public int getMatrix2Length() {
return T12PartUncial.LENGTH();
}
@Override
public int getMatrix2Length() {
public int getMatrix3Length() {
return valuesLength;
}
}

View file

@ -4,9 +4,9 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
import love.distributedrebirth.numberxd.base2t.BaseNumber;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public interface BaseGetậlMatrix1<T extends BaseGetậl<T,V>,V extends BaseNumber<V>> extends BaseGetậlMatrix0<T,V> {
public interface BaseGetậlMatrix1<T extends BaseGetậl<T,V>,V extends BaseNumber<V>> extends BaseGetậl<T,V> {
void setMatrix1(int valueIndex1);
void setMatrix1(int valueIndex0);
int getMatrix1();

View file

@ -4,11 +4,11 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
import love.distributedrebirth.numberxd.base2t.BaseNumber;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public interface BaseGetậlMatrix0<T extends BaseGetậl<T,V>,V extends BaseNumber<V>> extends BaseGetậl<T,V> {
public interface BaseGetậlMatrix4<T extends BaseGetậl<T,V>,V extends BaseNumber<V>> extends BaseGetậlMatrix3<T,V> {
void setMatrix0(int valueIndex0);
void setMatrix4(int valueIndex1);
int getMatrix0();
int getMatrix4();
int getMatrix0Length();
int getMatrix4Length();
}

View file

@ -11,7 +11,7 @@ import love.distributedrebirth.numberxd.base2t.type.V144Tocta;
* Holds an 144 bit fraction.
*/
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class GroßGetậl1ⁿᴰ extends AbstractBaseGetậlLevel0<GroßGetậl1ⁿᴰ,V009Tyte> {
public class GroßGetậl1ⁿᴰ extends AbstractBaseGetậlMatrix1<GroßGetậl1ⁿᴰ,V009Tyte> {
//public static int NUMERATOR_SIZE = 7;
//public static int DENOMINATOR_SIZE = 9;
@ -38,11 +38,11 @@ public class GroßGetậl1ⁿᴰ extends AbstractBaseGetậlLevel0<GroßGetậl1
@Override
public V009Tyte getValue() {
return value.getTytePart(T16PartHex.values()[matrix0]);
return value.getTytePart(T16PartHex.values()[matrix1]);
}
@Override
public int getMatrix0Length() {
public int getMatrix1Length() {
return T16PartHex.LENGTH();
}

View file

@ -12,7 +12,7 @@ import love.distributedrebirth.numberxd.base2t.BaseIteratorOctalStack;
* Holds an 864 bit fraction.
*/
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class GroßGetậl6ˢᴰ extends AbstractBaseGetậlLevel1<GroßGetậl6ˢᴰ,V009Tyte> {
public class GroßGetậl6ˢᴰ extends AbstractBaseGetậlMatrix2<GroßGetậl6ˢᴰ,V009Tyte> {
private final V144Tocta[] values = new V144Tocta[T12PartUncial.LENGTH()];
@ -29,16 +29,16 @@ public class GroßGetậl6ˢᴰ extends AbstractBaseGetậlLevel1<GroßGetậl6
}
public V009Tyte getValue() {
return values[matrix1].getTytePart(T16PartHex.values()[matrix0]);
}
@Override
public int getMatrix0Length() {
return T16PartHex.LENGTH();
return values[matrix2].getTytePart(T16PartHex.values()[matrix1]);
}
@Override
public int getMatrix1Length() {
return T16PartHex.LENGTH();
}
@Override
public int getMatrix2Length() {
return T12PartUncial.LENGTH();
}

View file

@ -33,10 +33,10 @@ public class GroßGetậlŌṁDiamond1ⁿᴰ extends AbstractGroßGetậlŌṁ1
@Override
public GroßGetậlŌṁDiamond1ⁿᴰ toClone() {
BaseIteratorOctalStack cloneStack = new BaseIteratorOctalStack();
for (int x=0;x<getMatrix0Length();x++) {
setMatrix0(x);
for (int y=0;y<getMatrix1Length();y++) {
setMatrix1(y);
for (int x=0;x<getMatrix1Length();x++) {
setMatrix1(x);
for (int y=0;y<getMatrix2Length();y++) {
setMatrix2(y);
cloneStack.addIterator(getValue().iteratorOctalsByClone());
}
}

View file

@ -29,12 +29,12 @@ public class GroßGetậlŌṁDiamond6ˢᴰ extends AbstractGroßGetậlŌṁ6ˢ
@Override
public GroßGetậlŌṁDiamond6ˢᴰ toClone() {
BaseIteratorOctalStack cloneStack = new BaseIteratorOctalStack();
for (int x=0;x<getMatrix0Length();x++) {
setMatrix0(x);
for (int y=0;y<getMatrix1Length();y++) {
setMatrix1(y);
for (int z=0;z<getMatrix1Length();z++) {
setMatrix1(z);
for (int x=0;x<getMatrix1Length();x++) {
setMatrix1(x);
for (int y=0;y<getMatrix2Length();y++) {
setMatrix2(y);
for (int z=0;z<getMatrix2Length();z++) {
setMatrix2(z);
cloneStack.addIterator(getValue().iteratorOctalsByClone());
}
}

View file

@ -28,10 +28,10 @@ public class GroßGetậlŌṁHyperStàr1ⁿᴰ extends AbstractGroßGetậlŌ
@Override
public GroßGetậlŌṁHyperStàr1ⁿᴰ toClone() {
BaseIteratorOctalStack cloneStack = new BaseIteratorOctalStack();
for (int x=0;x<getMatrix0Length();x++) {
setMatrix0(x);
for (int y=0;y<getMatrix1Length();y++) {
setMatrix1(y);
for (int x=0;x<getMatrix1Length();x++) {
setMatrix1(x);
for (int y=0;y<getMatrix2Length();y++) {
setMatrix2(y);
cloneStack.addIterator(getValue().iteratorOctalsByClone());
}
}

View file

@ -28,12 +28,12 @@ public class GroßGetậlŌṁHyperStàr6ˢᴰ extends AbstractGroßGetậlŌṁ
@Override
public GroßGetậlŌṁHyperStàr6ˢᴰ toClone() {
BaseIteratorOctalStack cloneStack = new BaseIteratorOctalStack();
for (int x=0;x<getMatrix0Length();x++) {
setMatrix0(x);
for (int y=0;y<getMatrix1Length();y++) {
setMatrix1(y);
for (int z=0;z<getMatrix1Length();z++) {
setMatrix1(z);
for (int x=0;x<getMatrix1Length();x++) {
setMatrix1(x);
for (int y=0;y<getMatrix2Length();y++) {
setMatrix2(y);
for (int z=0;z<getMatrix2Length();z++) {
setMatrix2(z);
cloneStack.addIterator(getValue().iteratorOctalsByClone());
}
}

View file

@ -9,7 +9,7 @@ import love.distributedrebirth.numberxd.base2t.type.V009Tyte;
import love.distributedrebirth.numberxd.base2t.type.V036Teger;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class Gê̄ldGetậl extends AbstractBaseGetậlLevel0<Gê̄ldGetậl,V009Tyte> {
public class Gê̄ldGetậl extends AbstractBaseGetậlMatrix1<Gê̄ldGetậl,V009Tyte> {
private final V036Teger value;
private final double totalDecimalValue;
@ -159,13 +159,13 @@ public class Gê̄ldGetậl extends AbstractBaseGetậlLevel0<Gê̄ldGetậl,V00
}
@Override
public int getMatrix0Length() {
public int getMatrix1Length() {
return T04PartQuad.LENGTH();
}
@Override
public V009Tyte getValue() {
return value.getTytePart(T04PartQuad.values()[matrix0]);
return value.getTytePart(T04PartQuad.values()[matrix1]);
}
@Override

View file

@ -7,7 +7,7 @@ import love.distributedrebirth.numberxd.base2t.BaseIteratorOctalStack;
import love.distributedrebirth.numberxd.base2t.part.T08PartOctal;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class KlompGetậl4ˢᴰ extends AbstractBaseGetậlLevel0<KlompGetậl4ˢᴰ,V0x000CA8ˣᴸ> {
public class KlompGetậl4ˢᴰ extends AbstractBaseGetậlMatrix1<KlompGetậl4ˢᴰ,V0x000CA8ˣᴸ> {
private final V0x000CA8ˣᴸ[] values = new V0x000CA8ˣᴸ[T08PartOctal.LENGTH()];
@ -25,11 +25,11 @@ public class KlompGetậl4ˢᴰ extends AbstractBaseGetậlLevel0<KlompGetậl4
@Override
public V0x000CA8ˣᴸ getValue() {
return values[matrix0];
return values[matrix1];
}
@Override
public int getMatrix0Length() {
public int getMatrix1Length() {
return T08PartOctal.LENGTH();
}

View file

@ -10,7 +10,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
* Array of ŌṁKlompGetậl4ˢᴰ sliced as cheese.
*/
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class KlompÅtŌṁKāassGetậl4ˢᴰ extends AbstractBaseGetậlLevel1<KlompÅtŌṁKāassGetậl4ˢᴰ, V0x000CA8ˣᴸ> {
public class KlompÅtŌṁKāassGetậl4ˢᴰ extends AbstractBaseGetậlMatrix2<KlompÅtŌṁKāassGetậl4ˢᴰ, V0x000CA8ˣᴸ> {
private final V0x000CA8ˣᴸ[][] kaas;
private final int kaasCuts;
@ -47,26 +47,26 @@ public class KlompÅtŌṁKāassGetậl4ˢᴰ extends AbstractBaseGetậlLevel1<
@Override
public V0x000CA8ˣᴸ getValue() {
return kaas[matrix0][matrix1];
}
@Override
public int getMatrix0Length() {
return T08PartOctal.LENGTH();
return kaas[matrix1][matrix2];
}
@Override
public int getMatrix1Length() {
return T08PartOctal.LENGTH();
}
@Override
public int getMatrix2Length() {
return kaasCuts;
}
@Override
public KlompÅtŌṁKāassGetậl4ˢᴰ toClone() {
BaseIteratorOctalStack cloneStack = new BaseIteratorOctalStack();
for (int x=0;x<getMatrix0Length();x++) {
setMatrix0(x);
for (int y=0;y<getMatrix1Length();y++) {
setMatrix1(y);
for (int x=0;x<getMatrix1Length();x++) {
setMatrix1(x);
for (int y=0;y<getMatrix2Length();y++) {
setMatrix2(y);
cloneStack.addIterator(getValue().iteratorOctalsByClone());
}
}

View file

@ -10,7 +10,7 @@ import love.distributedrebirth.numberxd.base2t.typexl.V0x049D40ˣᴸ;
* Wave quad channel.
*/
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class WaveGetậl1ᑫᴰ extends AbstractBaseGetậlLevel0<WaveGetậl1ᑫᴰ, V0x049D40ˣᴸ> {
public class WaveGetậl1ᑫᴰ extends AbstractBaseGetậlMatrix1<WaveGetậl1ᑫᴰ, V0x049D40ˣᴸ> {
private final V0x049D40ˣᴸ[] values = new V0x049D40ˣᴸ[T04PartQuad.LENGTH()];
@ -28,11 +28,11 @@ public class WaveGetậl1ᑫᴰ extends AbstractBaseGetậlLevel0<WaveGetậl1
@Override
public V0x049D40ˣᴸ getValue() {
return values[matrix0];
return values[matrix1];
}
@Override
public int getMatrix0Length() {
public int getMatrix1Length() {
return T04PartQuad.LENGTH();
}

View file

@ -18,8 +18,8 @@ public class GroßGetậlŌṁDiamond1Testⁿᴰ {
Assertions.assertNotNull(getalClone);
System.out.println("getal: "+getal);
System.out.println("getal.m0L: "+getal.getMatrix0Length());
System.out.println("getal.m1L: "+getal.getMatrix1Length());
System.out.println("getal.m0L: "+getal.getMatrix1Length());
System.out.println("getal.m1L: "+getal.getMatrix2Length());
GroßGetậlŌṁDiamond1ⁿᴰ getal2 = new GroßGetậlŌṁDiamond1ⁿᴰ(2);
GroßGetậlŌṁDiamond1ⁿᴰ getal3 = new GroßGetậlŌṁDiamond1ⁿᴰ(3);
@ -27,7 +27,7 @@ public class GroßGetậlŌṁDiamond1Testⁿᴰ {
GroßGetậlŌṁDiamond1ⁿᴰ getal5 = new GroßGetậlŌṁDiamond1ⁿᴰ(5).toClone();
System.out.println("getal5: "+getal5);
System.out.println("getal5.m0L: "+getal5.getMatrix0Length());
System.out.println("getal5.m1L: "+getal5.getMatrix1Length());
System.out.println("getal5.m0L: "+getal5.getMatrix1Length());
System.out.println("getal5.m1L: "+getal5.getMatrix2Length());
}
}