// Token: 0x060016DD RID: 5853 RVA: 0x000A559C File Offset: 0x000A379C private static bool JNDGJCCMCOO(Vector2[] NCEJDGLPCJC, Vector2[] JPGKPFKIGMH, float OQEOFMPMFBB, bool DELNOHEFELI, int KGQKHLFFMEG) { if (OQEOFMPMFBB < 0.001f) { return(false); } if ((KGQKHLFFMEG & 1) == 1) { DELNOHEFELI = !DELNOHEFELI; } if (!DELNOHEFELI && OQEOFMPMFBB > 0.999f) { return(true); } float num = Mathf.Clamp01(OQEOFMPMFBB); if (DELNOHEFELI) { num = 1f - num; } num *= 1.57079637f; float cgcgoedclqe = Mathf.Cos(num); float iqlkfmhbqfd = Mathf.Sin(num); PHINQNMFEHC.JNDGJCCMCOO(NCEJDGLPCJC, cgcgoedclqe, iqlkfmhbqfd, DELNOHEFELI, KGQKHLFFMEG); PHINQNMFEHC.JNDGJCCMCOO(JPGKPFKIGMH, cgcgoedclqe, iqlkfmhbqfd, DELNOHEFELI, KGQKHLFFMEG); return(true); }
// Token: 0x060016DB RID: 5851 RVA: 0x000A4084 File Offset: 0x000A2284 private void ONGHMGBDQJH(List <Vector3> EQINHIFFOGG, List <Vector2> PICFCJNMJMC, List <Color> HQOONBPDFHO) { if (this.mFillAmount < 0.001f) { return; } Vector4 bceppkgmnfe = this.BCEPPKGMNFE; Vector4 fkejlmmdinp = this.FKEJLMMDINP; Color fnbdghbqphj = this.FNBDGHBQPHJ; if (this.mFillDirection == PHINQNMFEHC.MQIMDDINNEQ.Horizontal || this.mFillDirection == PHINQNMFEHC.MQIMDDINNEQ.Vertical) { if (this.mFillDirection == PHINQNMFEHC.MQIMDDINNEQ.Horizontal) { float num = (fkejlmmdinp.z - fkejlmmdinp.x) * this.mFillAmount; if (this.mInvert) { bceppkgmnfe.x = bceppkgmnfe.z - (bceppkgmnfe.z - bceppkgmnfe.x) * this.mFillAmount; fkejlmmdinp.x = fkejlmmdinp.z - num; } else { bceppkgmnfe.z = bceppkgmnfe.x + (bceppkgmnfe.z - bceppkgmnfe.x) * this.mFillAmount; fkejlmmdinp.z = fkejlmmdinp.x + num; } } else if (this.mFillDirection == PHINQNMFEHC.MQIMDDINNEQ.Vertical) { float num2 = (fkejlmmdinp.w - fkejlmmdinp.y) * this.mFillAmount; if (this.mInvert) { bceppkgmnfe.y = bceppkgmnfe.w - (bceppkgmnfe.w - bceppkgmnfe.y) * this.mFillAmount; fkejlmmdinp.y = fkejlmmdinp.w - num2; } else { bceppkgmnfe.w = bceppkgmnfe.y + (bceppkgmnfe.w - bceppkgmnfe.y) * this.mFillAmount; fkejlmmdinp.w = fkejlmmdinp.y + num2; } } } PHINQNMFEHC.HJKPELHQJPL[0] = new Vector2(bceppkgmnfe.x, bceppkgmnfe.y); PHINQNMFEHC.HJKPELHQJPL[1] = new Vector2(bceppkgmnfe.x, bceppkgmnfe.w); PHINQNMFEHC.HJKPELHQJPL[2] = new Vector2(bceppkgmnfe.z, bceppkgmnfe.w); PHINQNMFEHC.HJKPELHQJPL[3] = new Vector2(bceppkgmnfe.z, bceppkgmnfe.y); PHINQNMFEHC.LCFNDMLMJKF[0] = new Vector2(fkejlmmdinp.x, fkejlmmdinp.y); PHINQNMFEHC.LCFNDMLMJKF[1] = new Vector2(fkejlmmdinp.x, fkejlmmdinp.w); PHINQNMFEHC.LCFNDMLMJKF[2] = new Vector2(fkejlmmdinp.z, fkejlmmdinp.w); PHINQNMFEHC.LCFNDMLMJKF[3] = new Vector2(fkejlmmdinp.z, fkejlmmdinp.y); if (this.mFillAmount < 1f) { if (this.mFillDirection == PHINQNMFEHC.MQIMDDINNEQ.Radial90) { if (PHINQNMFEHC.JNDGJCCMCOO(PHINQNMFEHC.HJKPELHQJPL, PHINQNMFEHC.LCFNDMLMJKF, this.mFillAmount, this.mInvert, 0)) { for (int i = 0; i < 4; i++) { EQINHIFFOGG.Add(PHINQNMFEHC.HJKPELHQJPL[i]); PICFCJNMJMC.Add(PHINQNMFEHC.LCFNDMLMJKF[i]); HQOONBPDFHO.Add(fnbdghbqphj); } } return; } if (this.mFillDirection == PHINQNMFEHC.MQIMDDINNEQ.Radial180) { for (int j = 0; j < 2; j++) { float t = 0f; float t2 = 1f; float t3; float t4; if (j == 0) { t3 = 0f; t4 = 0.5f; } else { t3 = 0.5f; t4 = 1f; } PHINQNMFEHC.HJKPELHQJPL[0].x = Mathf.Lerp(bceppkgmnfe.x, bceppkgmnfe.z, t3); PHINQNMFEHC.HJKPELHQJPL[1].x = PHINQNMFEHC.HJKPELHQJPL[0].x; PHINQNMFEHC.HJKPELHQJPL[2].x = Mathf.Lerp(bceppkgmnfe.x, bceppkgmnfe.z, t4); PHINQNMFEHC.HJKPELHQJPL[3].x = PHINQNMFEHC.HJKPELHQJPL[2].x; PHINQNMFEHC.HJKPELHQJPL[0].y = Mathf.Lerp(bceppkgmnfe.y, bceppkgmnfe.w, t); PHINQNMFEHC.HJKPELHQJPL[1].y = Mathf.Lerp(bceppkgmnfe.y, bceppkgmnfe.w, t2); PHINQNMFEHC.HJKPELHQJPL[2].y = PHINQNMFEHC.HJKPELHQJPL[1].y; PHINQNMFEHC.HJKPELHQJPL[3].y = PHINQNMFEHC.HJKPELHQJPL[0].y; PHINQNMFEHC.LCFNDMLMJKF[0].x = Mathf.Lerp(fkejlmmdinp.x, fkejlmmdinp.z, t3); PHINQNMFEHC.LCFNDMLMJKF[1].x = PHINQNMFEHC.LCFNDMLMJKF[0].x; PHINQNMFEHC.LCFNDMLMJKF[2].x = Mathf.Lerp(fkejlmmdinp.x, fkejlmmdinp.z, t4); PHINQNMFEHC.LCFNDMLMJKF[3].x = PHINQNMFEHC.LCFNDMLMJKF[2].x; PHINQNMFEHC.LCFNDMLMJKF[0].y = Mathf.Lerp(fkejlmmdinp.y, fkejlmmdinp.w, t); PHINQNMFEHC.LCFNDMLMJKF[1].y = Mathf.Lerp(fkejlmmdinp.y, fkejlmmdinp.w, t2); PHINQNMFEHC.LCFNDMLMJKF[2].y = PHINQNMFEHC.LCFNDMLMJKF[1].y; PHINQNMFEHC.LCFNDMLMJKF[3].y = PHINQNMFEHC.LCFNDMLMJKF[0].y; float value = this.mInvert ? (this.mFillAmount * 2f - (float)(1 - j)) : (this.KJNJQMLJELI * 2f - (float)j); if (PHINQNMFEHC.JNDGJCCMCOO(PHINQNMFEHC.HJKPELHQJPL, PHINQNMFEHC.LCFNDMLMJKF, Mathf.Clamp01(value), !this.mInvert, JNNGOIIKENH.FNNIKCNKDIN(j + 3, 4))) { for (int k = 0; k < 4; k++) { EQINHIFFOGG.Add(PHINQNMFEHC.HJKPELHQJPL[k]); PICFCJNMJMC.Add(PHINQNMFEHC.LCFNDMLMJKF[k]); HQOONBPDFHO.Add(fnbdghbqphj); } } } return; } if (this.mFillDirection == PHINQNMFEHC.MQIMDDINNEQ.Radial360) { int l = 0; while (l < 4) { float t5; float t6; if (l < 2) { t5 = 0f; t6 = 0.5f; } else { t5 = 0.5f; t6 = 1f; } if (l == 0) { goto IL_679; } if (l == 3) { goto IL_679; } float t7 = 0.5f; float t8 = 1f; IL_687: PHINQNMFEHC.HJKPELHQJPL[0].x = Mathf.Lerp(bceppkgmnfe.x, bceppkgmnfe.z, t5); PHINQNMFEHC.HJKPELHQJPL[1].x = PHINQNMFEHC.HJKPELHQJPL[0].x; PHINQNMFEHC.HJKPELHQJPL[2].x = Mathf.Lerp(bceppkgmnfe.x, bceppkgmnfe.z, t6); PHINQNMFEHC.HJKPELHQJPL[3].x = PHINQNMFEHC.HJKPELHQJPL[2].x; PHINQNMFEHC.HJKPELHQJPL[0].y = Mathf.Lerp(bceppkgmnfe.y, bceppkgmnfe.w, t7); PHINQNMFEHC.HJKPELHQJPL[1].y = Mathf.Lerp(bceppkgmnfe.y, bceppkgmnfe.w, t8); PHINQNMFEHC.HJKPELHQJPL[2].y = PHINQNMFEHC.HJKPELHQJPL[1].y; PHINQNMFEHC.HJKPELHQJPL[3].y = PHINQNMFEHC.HJKPELHQJPL[0].y; PHINQNMFEHC.LCFNDMLMJKF[0].x = Mathf.Lerp(fkejlmmdinp.x, fkejlmmdinp.z, t5); PHINQNMFEHC.LCFNDMLMJKF[1].x = PHINQNMFEHC.LCFNDMLMJKF[0].x; PHINQNMFEHC.LCFNDMLMJKF[2].x = Mathf.Lerp(fkejlmmdinp.x, fkejlmmdinp.z, t6); PHINQNMFEHC.LCFNDMLMJKF[3].x = PHINQNMFEHC.LCFNDMLMJKF[2].x; PHINQNMFEHC.LCFNDMLMJKF[0].y = Mathf.Lerp(fkejlmmdinp.y, fkejlmmdinp.w, t7); PHINQNMFEHC.LCFNDMLMJKF[1].y = Mathf.Lerp(fkejlmmdinp.y, fkejlmmdinp.w, t8); PHINQNMFEHC.LCFNDMLMJKF[2].y = PHINQNMFEHC.LCFNDMLMJKF[1].y; PHINQNMFEHC.LCFNDMLMJKF[3].y = PHINQNMFEHC.LCFNDMLMJKF[0].y; float value2 = (!this.mInvert) ? (this.mFillAmount * 4f - (float)(3 - JNNGOIIKENH.FNNIKCNKDIN(l + 2, 4))) : (this.mFillAmount * 4f - (float)JNNGOIIKENH.FNNIKCNKDIN(l + 2, 4)); if (PHINQNMFEHC.JNDGJCCMCOO(PHINQNMFEHC.HJKPELHQJPL, PHINQNMFEHC.LCFNDMLMJKF, Mathf.Clamp01(value2), this.mInvert, JNNGOIIKENH.FNNIKCNKDIN(l + 2, 4))) { for (int m = 0; m < 4; m++) { EQINHIFFOGG.Add(PHINQNMFEHC.HJKPELHQJPL[m]); PICFCJNMJMC.Add(PHINQNMFEHC.LCFNDMLMJKF[m]); HQOONBPDFHO.Add(fnbdghbqphj); } } l++; continue; IL_679: t7 = 0f; t8 = 0.5f; goto IL_687; } return; } } for (int n = 0; n < 4; n++) { EQINHIFFOGG.Add(PHINQNMFEHC.HJKPELHQJPL[n]); PICFCJNMJMC.Add(PHINQNMFEHC.LCFNDMLMJKF[n]); HQOONBPDFHO.Add(fnbdghbqphj); } }