package mapped;

import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;

@ObfuscatedName("rq")
public final class class461 {
   @ObfuscatedName("at")
   @ObfuscatedSignature(
      descriptor = "[Lrq;"
   )
   static class461[] field4764;
   @ObfuscatedName("ah")
   @ObfuscatedGetter(
      intValue = 1183641813
   )
   static int field4763;
   @ObfuscatedName("ao")
   float field4768;
   @ObfuscatedName("ab")
   float field4765;
   @ObfuscatedName("au")
   float field4766;
   @ObfuscatedName("aa")
   float field4767;

   static {
      field4764 = new class461[0];
      FontName.method8929_base(100);
      new class461();
   }

   class461() {
      this.method8409_base();
   }

   @ObfuscatedName("ar")
   @ObfuscatedSignature(
      descriptor = "(I)V",
      garbageValue = "-905673513"
   )
   public void method8424_base() {
      class461[] var1 = field4764;
      synchronized(field4764) {
         if(IgnoreList.field4663 < field4763 - 1) {
            field4764[++IgnoreList.field4663 - 1] = this;
         }
      }

   }

   @ObfuscatedName("ao")
   @ObfuscatedSignature(
      descriptor = "(FFFFI)V",
      garbageValue = "1133120924"
   )
   void method8423_base(float var1, float var2, float var3, float var4) {
      this.field4768 = var1;
      this.field4765 = var2;
      this.field4766 = var3;
      this.field4767 = var4;
   }

   @ObfuscatedName("ab")
   @ObfuscatedSignature(
      descriptor = "(FFFFI)V",
      garbageValue = "1735434078"
   )
   public void method8408_base(float var1, float var2, float var3, float var4) {
      float var5 = (float)Math.sin((double)(var4 * 0.5F));
      float var6 = (float)Math.cos((double)(0.5F * var4));
      this.field4768 = var1 * var5;
      this.field4765 = var5 * var2;
      this.field4766 = var3 * var5;
      this.field4767 = var6;
   }

   @ObfuscatedName("au")
   @ObfuscatedSignature(
      descriptor = "(I)V",
      garbageValue = "210229291"
   )
   final void method8409_base() {
      this.field4766 = 0.0F;
      this.field4765 = 0.0F;
      this.field4768 = 0.0F;
      this.field4767 = 1.0F;
   }

   @ObfuscatedName("aa")
   @ObfuscatedSignature(
      descriptor = "(Lrq;I)V",
      garbageValue = "992983838"
   )
   public final void method8410_base(class461 var1) {
      this.method8423_base(this.field4766 * var1.field4765 + var1.field4767 * this.field4768 + this.field4767 * var1.field4768 - var1.field4766 * this.field4765, var1.field4765 * this.field4767 + (this.field4765 * var1.field4767 - var1.field4768 * this.field4766) + this.field4768 * var1.field4766, this.field4767 * var1.field4766 + (var1.field4768 * this.field4765 + this.field4766 * var1.field4767 - this.field4768 * var1.field4765), var1.field4767 * this.field4767 - var1.field4768 * this.field4768 - var1.field4765 * this.field4765 - var1.field4766 * this.field4766);
   }

   public int hashCode() {
      boolean var1 = true;
      float var2 = 1.0F;
      var2 = 31.0F * var2 + this.field4768;
      var2 = this.field4765 + 31.0F * var2;
      var2 = 31.0F * var2 + this.field4766;
      var2 = this.field4767 + 31.0F * var2;
      return (int)var2;
   }

   public boolean equals(Object var1) {
      if(!(var1 instanceof class461)) {
         return false;
      } else {
         class461 var2 = (class461)var1;
         return var2.field4768 == this.field4768 && var2.field4765 == this.field4765 && this.field4766 == var2.field4766 && var2.field4767 == this.field4767;
      }
   }

   public String toString() {
      return this.field4768 + "," + this.field4765 + "," + this.field4766 + "," + this.field4767;
   }
}
