using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using UnityEngine;

namespace Obi
{
	// Token: 0x02000502 RID: 1282
	public class ObiCircleShapeTracker2D : ObiShapeTracker
	{
		// Token: 0x0600945F RID: 37983 RVA: 0x00261DD8 File Offset: 0x0025FFD8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 639763, XrefRangeEnd = 639766, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ObiCircleShapeTracker2D(CircleCollider2D collider)
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ObiCircleShapeTracker2D>.NativeClassPtr))
		{
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(collider);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ObiCircleShapeTracker2D.NativeMethodInfoPtr__ctor_Public_Void_CircleCollider2D_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06009460 RID: 37984 RVA: 0x00261E3C File Offset: 0x0026003C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 639766, XrefRangeEnd = 639778, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void UpdateIfNeeded()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), ObiCircleShapeTracker2D.NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009461 RID: 37985 RVA: 0x00261E8C File Offset: 0x0026008C
		// Note: this type is marked as 'beforefieldinit'.
		static ObiCircleShapeTracker2D()
		{
			Il2CppClassPointerStore<ObiCircleShapeTracker2D>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi", "ObiCircleShapeTracker2D");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ObiCircleShapeTracker2D>.NativeClassPtr);
			ObiCircleShapeTracker2D.NativeFieldInfoPtr_radius = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiCircleShapeTracker2D>.NativeClassPtr, "radius");
			ObiCircleShapeTracker2D.NativeFieldInfoPtr_center = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ObiCircleShapeTracker2D>.NativeClassPtr, "center");
			ObiCircleShapeTracker2D.NativeMethodInfoPtr__ctor_Public_Void_CircleCollider2D_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiCircleShapeTracker2D>.NativeClassPtr, 100674758);
			ObiCircleShapeTracker2D.NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ObiCircleShapeTracker2D>.NativeClassPtr, 100674759);
		}

		// Token: 0x06009462 RID: 37986 RVA: 0x00261B08 File Offset: 0x0025FD08
		public ObiCircleShapeTracker2D(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003253 RID: 12883
		// (get) Token: 0x06009463 RID: 37987 RVA: 0x00261F0C File Offset: 0x0026010C
		// (set) Token: 0x06009464 RID: 37988 RVA: 0x00261F34 File Offset: 0x00260134
		public unsafe float radius
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCircleShapeTracker2D.NativeFieldInfoPtr_radius);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCircleShapeTracker2D.NativeFieldInfoPtr_radius)) = value;
			}
		}

		// Token: 0x17003254 RID: 12884
		// (get) Token: 0x06009465 RID: 37989 RVA: 0x00261F58 File Offset: 0x00260158
		// (set) Token: 0x06009466 RID: 37990 RVA: 0x00261F80 File Offset: 0x00260180
		public unsafe Vector2 center
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCircleShapeTracker2D.NativeFieldInfoPtr_center);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ObiCircleShapeTracker2D.NativeFieldInfoPtr_center)) = value;
			}
		}

		// Token: 0x04006303 RID: 25347
		private static readonly IntPtr NativeFieldInfoPtr_radius;

		// Token: 0x04006304 RID: 25348
		private static readonly IntPtr NativeFieldInfoPtr_center;

		// Token: 0x04006305 RID: 25349
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_CircleCollider2D_0;

		// Token: 0x04006306 RID: 25350
		private static readonly IntPtr NativeMethodInfoPtr_UpdateIfNeeded_Public_Virtual_Void_0;
	}
}
