Package nokunami.floral_warfare.api
Class MathFunc
java.lang.Object
nokunami.floral_warfare.api.MathFunc
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic floatdistanceTo(net.minecraft.world.phys.Vec3 pos1, net.minecraft.world.phys.Vec3 pos2) Returns the distance to the entity.static doubledistanceToSqr(double x, double y, double z, double pX, double pY, double pZ) Gets the squared distance to the position.static net.minecraft.world.phys.Vec2rotationFromDirection(net.minecraft.world.phys.Vec3 vector)
-
Constructor Details
-
MathFunc
public MathFunc()
-
-
Method Details
-
distanceTo
public static float distanceTo(net.minecraft.world.phys.Vec3 pos1, net.minecraft.world.phys.Vec3 pos2) Returns the distance to the entity. -
distanceToSqr
public static double distanceToSqr(double x, double y, double z, double pX, double pY, double pZ) Gets the squared distance to the position. -
rotationFromDirection
public static net.minecraft.world.phys.Vec2 rotationFromDirection(net.minecraft.world.phys.Vec3 vector)
-