Klasse Angle

java.lang.Object
gollorum.signpost.utils.math.Angle

public final class Angle extends Object
  • Felddetails

    • DEGREES_TO_RADIANS

      public static final float DEGREES_TO_RADIANS
      Siehe auch:
    • RADIANS_TO_DEGREES

      public static final float RADIANS_TO_DEGREES
      Siehe auch:
    • ZERO

      public static final Angle ZERO
    • MAP_CODEC

      public static final com.mojang.serialization.MapCodec<Angle> MAP_CODEC
    • CODEC

      public static final com.mojang.serialization.Codec<Angle> CODEC
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,Angle> STREAM_CODEC
  • Methodendetails

    • between

      public static Angle between(float x1, float z1, float x2, float z2)
    • fromRadians

      public static Angle fromRadians(float radians)
    • fromDegrees

      public static Angle fromDegrees(float degrees)
    • add

      public Angle add(Angle other)
    • subtract

      public Angle subtract(Angle other)
    • mul

      public Angle mul(Float other)
    • div

      public Angle div(Float other)
    • negated

      public Angle negated()
    • radians

      public float radians()
    • degrees

      public float degrees()
    • normalized

      public Angle normalized()
    • cos

      public double cos()
    • sin

      public double sin()
    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Object
    • isNearly

      public boolean isNearly(Angle other, Angle threshold)
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object