using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppSystem;
using Il2CppSystem.Collections.Generic;
using UnityEngine;

namespace ch.sycoforge.Decal.Demo
{
	// Token: 0x02000653 RID: 1619
	public static class LineUtil : Il2CppSystem.Object
	{
		// Token: 0x0600A6F8 RID: 42744 RVA: 0x002AC890 File Offset: 0x002AAA90
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 655021, XrefRangeEnd = 655034, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe static void DrawPath(float thickness, Material material, List<Vector3> path)
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref thickness;
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(material);
			ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(path);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(LineUtil.NativeMethodInfoPtr_DrawPath_Public_Static_Void_Single_Material_List_1_Vector3_0, 0, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A6F9 RID: 42745 RVA: 0x002AC908 File Offset: 0x002AAB08
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 655046, RefRangeEnd = 655047, XrefRangeStart = 655034, XrefRangeEnd = 655046, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe static void DrawLine(float thickness, Vector3 start, Vector3 end)
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref thickness;
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref start;
			ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref end;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(LineUtil.NativeMethodInfoPtr_DrawLine_Private_Static_Void_Single_Vector3_Vector3_0, 0, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A6FA RID: 42746 RVA: 0x002AC974 File Offset: 0x002AAB74
		// Note: this type is marked as 'beforefieldinit'.
		static LineUtil()
		{
			Il2CppClassPointerStore<LineUtil>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "ch.sycoforge.Decal.Demo", "LineUtil");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<LineUtil>.NativeClassPtr);
			LineUtil.NativeMethodInfoPtr_DrawPath_Public_Static_Void_Single_Material_List_1_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<LineUtil>.NativeClassPtr, 100676210);
			LineUtil.NativeMethodInfoPtr_DrawLine_Private_Static_Void_Single_Vector3_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<LineUtil>.NativeClassPtr, 100676211);
		}

		// Token: 0x0600A6FB RID: 42747 RVA: 0x0000A74C File Offset: 0x0000894C
		public LineUtil(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x04006FEE RID: 28654
		private static readonly IntPtr NativeMethodInfoPtr_DrawPath_Public_Static_Void_Single_Material_List_1_Vector3_0;

		// Token: 0x04006FEF RID: 28655
		private static readonly IntPtr NativeMethodInfoPtr_DrawLine_Private_Static_Void_Single_Vector3_Vector3_0;
	}
}
