Class MathFunc

java.lang.Object
nokunami.floral_warfare.api.MathFunc

public class MathFunc extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static float
    distanceTo(net.minecraft.world.phys.Vec3 pos1, net.minecraft.world.phys.Vec3 pos2)
    Returns the distance to the entity.
    static double
    distanceToSqr(double x, double y, double z, double pX, double pY, double pZ)
    Gets the squared distance to the position.
    static net.minecraft.world.phys.Vec2
    rotationFromDirection(net.minecraft.world.phys.Vec3 vector)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)