Reformated
This commit is contained in:
parent
079b51e3f6
commit
852e5a6abc
385 changed files with 6924 additions and 5656 deletions
|
@ -1,9 +1,9 @@
|
|||
package org.betterx.bclib.sdf.primitive;
|
||||
|
||||
import net.minecraft.util.Mth;
|
||||
|
||||
import org.betterx.bclib.util.MHelper;
|
||||
|
||||
import net.minecraft.util.Mth;
|
||||
|
||||
public class SDFCappedCone extends SDFPrimitive {
|
||||
private float radius1;
|
||||
private float radius2;
|
||||
|
@ -35,7 +35,7 @@ public class SDFCappedCone extends SDFPrimitive {
|
|||
MHelper.dot(radius2 - qx, height - y, k2x, k2y) / MHelper.dot(k2x, k2y, k2x, k2y),
|
||||
0F,
|
||||
1F
|
||||
);
|
||||
);
|
||||
float cbx = qx - radius2 + k2x * mlt;
|
||||
float cby = y - height + k2y * mlt;
|
||||
float s = (cbx < 0F && cay < 0F) ? -1F : 1F;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package org.betterx.bclib.sdf.primitive;
|
||||
|
||||
import net.minecraft.util.Mth;
|
||||
|
||||
import org.betterx.bclib.util.MHelper;
|
||||
|
||||
import net.minecraft.util.Mth;
|
||||
|
||||
public class SDFCapsule extends SDFPrimitive {
|
||||
private float radius;
|
||||
private float height;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package org.betterx.bclib.sdf.primitive;
|
||||
|
||||
import net.minecraft.util.Mth;
|
||||
|
||||
import org.betterx.bclib.util.MHelper;
|
||||
|
||||
import net.minecraft.util.Mth;
|
||||
|
||||
public class SDFLine extends SDFPrimitive {
|
||||
private float radius;
|
||||
private float x1;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package org.betterx.bclib.sdf.primitive;
|
||||
|
||||
import net.minecraft.util.Mth;
|
||||
|
||||
import org.betterx.bclib.util.MHelper;
|
||||
|
||||
import net.minecraft.util.Mth;
|
||||
|
||||
public class SDFPie extends SDFPrimitive {
|
||||
private float sin;
|
||||
private float cos;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package org.betterx.bclib.sdf.primitive;
|
||||
|
||||
import org.betterx.bclib.sdf.SDF;
|
||||
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.world.level.block.Block;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
|
||||
import org.betterx.bclib.sdf.SDF;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
public abstract class SDFPrimitive extends SDF {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue