using System; namespace UnityEngine { // Token: 0x0200045E RID: 1118 public struct Ray2D { // Token: 0x060038DE RID: 14558 RVA: 0x00062128 File Offset: 0x00060328 public Ray2D(Vector2 origin, Vector2 direction) { this.m_Origin = origin; this.m_Direction = direction.normalized; } // Token: 0x17000D0B RID: 3339 // (get) Token: 0x060038DF RID: 14559 RVA: 0x00062140 File Offset: 0x00060340 // (set) Token: 0x060038E0 RID: 14560 RVA: 0x0006215C File Offset: 0x0006035C public Vector2 origin { get { return this.m_Origin; } set { this.m_Origin = value; } } // Token: 0x17000D0C RID: 3340 // (get) Token: 0x060038E1 RID: 14561 RVA: 0x00062168 File Offset: 0x00060368 // (set) Token: 0x060038E2 RID: 14562 RVA: 0x00062184 File Offset: 0x00060384 public Vector2 direction { get { return this.m_Direction; } set { this.m_Direction = value.normalized; } } // Token: 0x060038E3 RID: 14563 RVA: 0x00062194 File Offset: 0x00060394 public Vector2 GetPoint(float distance) { return this.m_Origin + this.m_Direction * distance; } // Token: 0x060038E4 RID: 14564 RVA: 0x000621C0 File Offset: 0x000603C0 public override string ToString() { return UnityString.Format("Origin: {0}, Dir: {1}", new object[] { this.m_Origin, this.m_Direction }); } // Token: 0x060038E5 RID: 14565 RVA: 0x00062204 File Offset: 0x00060404 public string ToString(string format) { return UnityString.Format("Origin: {0}, Dir: {1}", new object[] { this.m_Origin.ToString(format), this.m_Direction.ToString(format) }); } // Token: 0x0400113C RID: 4412 private Vector2 m_Origin; // Token: 0x0400113D RID: 4413 private Vector2 m_Direction; } }