// Token: 0x06002329 RID: 9001 RVA: 0x0014813C File Offset: 0x0014633C public bool Create(ref CArray2 <float> area_xy1, ref CArray2 <float> area_xy2) { this.m_area.left = area_xy1.x; this.m_area.top = area_xy1.y; this.m_area.right = area_xy2.x; this.m_area.bottom = area_xy2.y; return(this.create()); }
// Token: 0x06002338 RID: 9016 RVA: 0x0014865C File Offset: 0x0014685C public bool isHit(CArray2 <float> target, CArray2 <float> p1, CArray2 <float> p2, CArray2 <float> p3) { float num = AppMain.CPadVirtualPad.CLocalLogic.Cross(AppMain._SubrtactArray2(p1, target), AppMain._SubrtactArray2(p2, target)); float num2 = AppMain.CPadVirtualPad.CLocalLogic.Cross(AppMain._SubrtactArray2(p2, target), AppMain._SubrtactArray2(p3, target)); float num3 = AppMain.CPadVirtualPad.CLocalLogic.Cross(AppMain._SubrtactArray2(p3, target), AppMain._SubrtactArray2(p1, target)); return(0f < num * num2 && 0f < num * num3); }
// Token: 0x06002336 RID: 9014 RVA: 0x0014841C File Offset: 0x0014661C public ushort getOnFlag(CArray2 <float> pos) { CArray2 <float> p = CArray2 <float> .initializer((this.m_area.left + this.m_area.right) * 0.5f, (this.m_area.top + this.m_area.bottom) * 0.5f); pos.y -= 16f; pos.y /= 1.05f; ushort num = 0; float num2 = 0.4f; float num3 = (this.m_area.bottom - this.m_area.top) * num2 * 0.5f; CArray2 <float> xy = CArray2 <float> .initializer(this.m_area.left, p.y - num3); CArray2 <float> xy2 = CArray2 <float> .initializer(p.x, p.y + num3 - 17f); CArray2 <float> xy3 = CArray2 <float> .initializer(p.x, p.y - num3); CArray2 <float> xy4 = CArray2 <float> .initializer(this.m_area.right, p.y + num3 - 17f); if (this.isHit(pos, xy3, xy4)) { num = 8; } else if (this.isHit(pos, xy, xy2)) { num = 4; } if (num == 0) { CArray2 <float> carray = CArray2 <float> .initializer(this.m_area.left, this.m_area.top); CArray2 <float> carray2 = CArray2 <float> .initializer(this.m_area.right, this.m_area.top); CArray2 <float> carray3 = CArray2 <float> .initializer(this.m_area.left, this.m_area.bottom); CArray2 <float> carray4 = CArray2 <float> .initializer(this.m_area.right, this.m_area.bottom); if (this.isHit(pos, p, carray2, carray4)) { num = 8; } else if (this.isHit(pos, p, carray3, carray)) { num = 4; } else if (this.isHit(pos, p, carray, carray2)) { num = 1; } else if (this.isHit(pos, p, carray4, carray3)) { num = 2; } } return(num); }
// Token: 0x060029F4 RID: 10740 RVA: 0x00159204 File Offset: 0x00157404 public bool Create(CArray2 <int> xy1, CArray2 <int> xy2) { this.Release(); this.m_rect.left = xy1.x; this.m_rect.top = xy1.y; this.m_rect.right = xy2.x; this.m_rect.bottom = xy2.y; return(this.create()); }
public bool Create(CArray2 <float> center) { this.m_area.left = 0.0f; this.m_area.top = 0.0f; this.m_area.right = AppMain.AMD_SCREEN_2D_WIDTH; this.m_area.bottom = 288f; this.m_center = center; return(this.create()); }
// Token: 0x06002073 RID: 8307 RVA: 0x0013E7FC File Offset: 0x0013C9FC public void AcmInit() { this.pos = CArray3 <float> .initializer(0f, 0f, 0f); this.scale = CArray2 <float> .initializer(1f, 1f); this.color.c = uint.MaxValue; this.act.sprite.texlist = this.tex.texlist; }
private bool isHit(CArray2 <float> pos) { bool flag = false; if ((double)pos.x >= (double)this.m_area.left && (double)this.m_area.right >= (double)pos.x && ((double)pos.y >= (double)this.m_area.top && (double)this.m_area.bottom >= (double)pos.y)) { flag = true; } return(flag); }
// Token: 0x06002337 RID: 9015 RVA: 0x00148608 File Offset: 0x00146808 public bool isHit(CArray2 <float> target, CArray2 <float> xy1, CArray2 <float> xy2) { bool result = false; if (target.x >= xy1.x && xy2.x >= target.x && target.y >= xy1.y && xy2.y >= target.y) { result = true; } return(result); }
// Token: 0x06002334 RID: 9012 RVA: 0x00148394 File Offset: 0x00146594 public bool isHit(CArray2 <float> pos) { bool result = false; if (pos.x >= this.m_area.left && this.m_area.right >= pos.x && pos.y >= this.m_area.top && this.m_area.bottom >= pos.y) { result = true; } return(result); }
public bool isHit(CArray2 <float> target, CArray2 <float> xy1, CArray2 <float> xy2) { bool flag = false; if ((double)target.x >= (double)xy1.x && (double)xy2.x >= (double)target.x && ((double)target.y >= (double)xy1.y && (double)xy2.y >= (double)target.y)) { flag = true; } return(flag); }
public bool isHit( CArray2 <float> target, CArray2 <float> p1, CArray2 <float> p2, CArray2 <float> p3) { float num1 = CPadVirtualPad.CLocalLogic.Cross(AppMain._SubrtactArray2(p1, target), AppMain._SubrtactArray2(p2, target)); float num2 = CPadVirtualPad.CLocalLogic.Cross(AppMain._SubrtactArray2(p2, target), AppMain._SubrtactArray2(p3, target)); float num3 = CPadVirtualPad.CLocalLogic.Cross(AppMain._SubrtactArray2(p3, target), AppMain._SubrtactArray2(p1, target)); return(0.0 < (double)num1 * (double)num2 && 0.0 < (double)num1 * (double)num3); }
public ushort getOnFlag(CArray2 <float> pos) { CArray2 <float> p1 = CArray2 <float> .initializer((float)(((double)this.m_area.left + (double)this.m_area.right) * 0.5), (float)(((double)this.m_area.top + (double)this.m_area.bottom) * 0.5)); pos.y -= 16f; pos.y /= 1.05f; ushort num1 = 0; float num2 = (float)(((double)this.m_area.bottom - (double)this.m_area.top) * 0.400000005960464 * 0.5); CArray2 <float> xy1_1 = CArray2 <float> .initializer(this.m_area.left, p1.y - num2); CArray2 <float> xy2_1 = CArray2 <float> .initializer(p1.x, (float)((double)p1.y + (double)num2 - 17.0)); CArray2 <float> xy1_2 = CArray2 <float> .initializer(p1.x, p1.y - num2); CArray2 <float> xy2_2 = CArray2 <float> .initializer(this.m_area.right, (float)((double)p1.y + (double)num2 - 17.0)); if (this.isHit(pos, xy1_2, xy2_2)) { num1 = (ushort)8; } else if (this.isHit(pos, xy1_1, xy2_1)) { num1 = (ushort)4; } if (num1 == (ushort)0) { CArray2 <float> carray2_1 = CArray2 <float> .initializer(this.m_area.left, this.m_area.top); CArray2 <float> carray2_2 = CArray2 <float> .initializer(this.m_area.right, this.m_area.top); CArray2 <float> carray2_3 = CArray2 <float> .initializer(this.m_area.left, this.m_area.bottom); CArray2 <float> carray2_4 = CArray2 <float> .initializer(this.m_area.right, this.m_area.bottom); if (this.isHit(pos, p1, carray2_2, carray2_4)) { num1 = (ushort)8; } else if (this.isHit(pos, p1, carray2_3, carray2_1)) { num1 = (ushort)4; } else if (this.isHit(pos, p1, carray2_1, carray2_2)) { num1 = (ushort)1; } else if (this.isHit(pos, p1, carray2_4, carray2_3)) { num1 = (ushort)2; } } return(num1); }
// Token: 0x06002074 RID: 8308 RVA: 0x0013E860 File Offset: 0x0013CA60 public void Update() { AppMain.AoActAcmPush(); float frame = this.flag[0] ? 0f : 1f; AppMain.AoActSetTexture(AppMain.AoTexGetTexList(this.tex)); if (!CArray2 <float> .initializer(1f, 1f).equals(this.scale)) { AppMain.AoActAcmApplyScale(this.scale.x, this.scale.y); } if (!CArray3 <float> .initializer(0f, 0f, 0f).equals(this.pos)) { AppMain.AoActAcmApplyTrans(this.pos.x, this.pos.y, this.pos.z); } if (4294967295U != this.color.c) { AppMain.AoActAcmApplyColor(this.color); } AppMain.AoActUpdate(this.act, frame); AppMain.AoActAcmPop(); }
private float getCurrentValue() { float num; if (0 <= this.m_focus && AppMain.amTpIsTouchOn(this.m_focus)) { ushort[] on = AppMain._am_tp_touch[this.m_focus].on; if (AppMain.amTpIsTouchPush(this.m_focus)) { this.m_around = 0; } else if ((double)on[0] <= (double)this.m_center.x && (double)this.m_prev.x <= (double)this.m_center.x) { if ((double)this.m_center.y <= (double)on[1]) { if ((double)this.m_prev.y < (double)this.m_center.y) { --this.m_around; } } else if ((double)this.m_center.y <= (double)this.m_prev.y) { ++this.m_around; } } this.m_prev = CArray2 <float> .initializer((float)on[0], (float)on[1]); CArray2 <float> carray2 = AppMain._SubrtactArray2(this.m_prev, this.m_center); num = (float)Math.Atan2((double)carray2.y, (double)carray2.x) + AppMain.CPadPolarHandle.c_pi * (float)this.m_around; } else { num = 0.0f; } return(num); }
// Token: 0x060020AA RID: 8362 RVA: 0x0013F6D4 File Offset: 0x0013D8D4 private float getCurrentValue() { float result; if (0 <= this.m_focus && AppMain.amTpIsTouchOn(this.m_focus)) { ushort[] on = AppMain._am_tp_touch[this.m_focus].on; if (AppMain.amTpIsTouchPush(this.m_focus)) { this.m_around = 0; } else if (( float )on[0] <= this.m_center.x && this.m_prev.x <= this.m_center.x) { if (this.m_center.y <= ( float )on[1]) { if (this.m_prev.y < this.m_center.y) { this.m_around--; } } else if (this.m_center.y <= this.m_prev.y) { this.m_around++; } } this.m_prev = CArray2 <float> .initializer(( float )on[0], ( float )on[1]); CArray2 <float> carray = AppMain._SubrtactArray2(this.m_prev, this.m_center); result = ( float )Math.Atan2(( double )carray.y, ( double )carray.x) + AppMain.CPadPolarHandle.c_pi * ( float )this.m_around; } else { result = 0f; } return(result); }
// Token: 0x06002335 RID: 9013 RVA: 0x001483F8 File Offset: 0x001465F8 public ushort getOnFlag(ushort[] point) { CArray2 <float> pos = CArray2 <float> .initializer((float)point[0], (float)point[1]); return(this.getOnFlag(pos)); }
public static float Cross(CArray2 <float> p1, CArray2 <float> p2) { return((float)((double)p1.x * (double)p2.y - (double)p1.y * (double)p2.x)); }
public bool Create(CArray4 <float> area, CArray2 <float> center) { this.m_area = area; this.m_center = center; return(this.create()); }
// Token: 0x06002333 RID: 9011 RVA: 0x00148370 File Offset: 0x00146570 public bool isHit(ushort[] point) { CArray2 <float> pos = CArray2 <float> .initializer((float)point[0], (float)point[1]); return(this.isHit(pos)); }
// Token: 0x0600233B RID: 9019 RVA: 0x001486F0 File Offset: 0x001468F0 public static float Cross(CArray2 <float> p1, CArray2 <float> p2) { return(p1.x * p2.y - p1.y * p2.x); }
private bool isHit(ushort[] point) { return(this.isHit(CArray2 <float> .initializer((float)point[0], (float)point[1]))); }