2022-01-30 21:00:16 +00:00
|
|
|
package love.distributedrebirth.numberxd;
|
2022-01-28 10:24:54 +00:00
|
|
|
|
2022-02-04 17:00:03 +00:00
|
|
|
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
2022-02-02 17:26:21 +00:00
|
|
|
import love.distributedrebirth.numberxd.base2t.BaseIteratorOctal;
|
|
|
|
import love.distributedrebirth.numberxd.base2t.BaseIteratorTyte;
|
2022-02-04 17:00:03 +00:00
|
|
|
import love.distributedrebirth.numberxd.base2t.part.T16PartHex;
|
2022-02-02 21:51:56 +00:00
|
|
|
import love.distributedrebirth.numberxd.base2t.type.V009Tyte;
|
2022-02-04 17:00:03 +00:00
|
|
|
import love.distributedrebirth.numberxd.base2t.type.V144Tocta;
|
2022-01-28 10:24:54 +00:00
|
|
|
|
2022-01-29 04:50:02 +00:00
|
|
|
/**
|
2022-01-30 20:50:19 +00:00
|
|
|
* Holds an 144 bit fraction.
|
2022-01-29 04:50:02 +00:00
|
|
|
*/
|
2022-02-04 17:00:03 +00:00
|
|
|
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
|
|
|
public class GroßGetậl1ⁿᴰ extends AbstractBaseGetậlLevel0<GroßGetậl1ⁿᴰ,V009Tyte> {
|
2022-01-28 10:24:54 +00:00
|
|
|
|
2022-02-04 17:00:03 +00:00
|
|
|
//public static int NUMERATOR_SIZE = 7;
|
|
|
|
//public static int DENOMINATOR_SIZE = 9;
|
|
|
|
//public static int BIT_COUNT = V144Tocta.BIT_COUNT;
|
|
|
|
//private final V009Tyte[] numerator = new V009Tyte[NUMERATOR_SIZE];
|
|
|
|
//private final V009Tyte[] denominator = new V009Tyte[DENOMINATOR_SIZE];
|
|
|
|
private final V144Tocta value;
|
2022-01-28 10:24:54 +00:00
|
|
|
|
2022-01-31 12:58:19 +00:00
|
|
|
public GroßGetậl1ⁿᴰ() {
|
2022-02-04 17:00:03 +00:00
|
|
|
this(new V144Tocta());
|
2022-01-28 10:24:54 +00:00
|
|
|
}
|
|
|
|
|
2022-02-02 17:26:21 +00:00
|
|
|
public GroßGetậl1ⁿᴰ(BaseIteratorOctal values) {
|
2022-02-04 17:00:03 +00:00
|
|
|
this(new V144Tocta(values));
|
2022-01-30 10:28:52 +00:00
|
|
|
}
|
|
|
|
|
2022-02-02 17:26:21 +00:00
|
|
|
public GroßGetậl1ⁿᴰ(BaseIteratorTyte values) {
|
2022-02-04 17:00:03 +00:00
|
|
|
this(new V144Tocta(values));
|
2022-01-30 10:28:52 +00:00
|
|
|
}
|
|
|
|
|
2022-02-04 17:00:03 +00:00
|
|
|
public GroßGetậl1ⁿᴰ(V144Tocta value) {
|
|
|
|
this.value = value;
|
2022-01-28 10:24:54 +00:00
|
|
|
}
|
|
|
|
|
2022-02-04 17:00:03 +00:00
|
|
|
@Override
|
|
|
|
public V009Tyte getValue() {
|
2022-02-04 19:01:05 +00:00
|
|
|
return value.getTytePart(T16PartHex.values()[matrix0]);
|
2022-01-31 12:15:04 +00:00
|
|
|
}
|
|
|
|
|
2022-01-30 10:28:52 +00:00
|
|
|
@Override
|
2022-02-04 19:01:05 +00:00
|
|
|
public int getMatrix0Length() {
|
2022-02-04 17:00:03 +00:00
|
|
|
return T16PartHex.LENGTH();
|
2022-01-30 10:28:52 +00:00
|
|
|
}
|
2022-02-04 17:00:03 +00:00
|
|
|
|
2022-01-30 10:28:52 +00:00
|
|
|
@Override
|
2022-01-31 12:58:19 +00:00
|
|
|
public GroßGetậl1ⁿᴰ toClone() {
|
2022-02-04 17:00:03 +00:00
|
|
|
return new GroßGetậl1ⁿᴰ(value.toClone());
|
2022-01-28 10:24:54 +00:00
|
|
|
}
|
|
|
|
}
|