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

namespace ch.sycoforge.Decal.Demo
{
	// Token: 0x020005FB RID: 1531
	public static class LineUtil : Il2CppSystem.Object
	{
		// Token: 0x06009EA5 RID: 40613 RVA: 0x00289B54 File Offset: 0x00287D54
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 622719, XrefRangeEnd = 622732, 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: 0x06009EA6 RID: 40614 RVA: 0x00289BCC File Offset: 0x00287DCC
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 622744, RefRangeEnd = 622745, XrefRangeStart = 622732, XrefRangeEnd = 622744, 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: 0x06009EA7 RID: 40615 RVA: 0x00289C38 File Offset: 0x00287E38
		// 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, 100675497);
			LineUtil.NativeMethodInfoPtr_DrawLine_Private_Static_Void_Single_Vector3_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<LineUtil>.NativeClassPtr, 100675498);
		}

		// Token: 0x06009EA8 RID: 40616 RVA: 0x0000A688 File Offset: 0x00008888
		public LineUtil(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x04006A45 RID: 27205
		private static readonly IntPtr NativeMethodInfoPtr_DrawPath_Public_Static_Void_Single_Material_List_1_Vector3_0;

		// Token: 0x04006A46 RID: 27206
		private static readonly IntPtr NativeMethodInfoPtr_DrawLine_Private_Static_Void_Single_Vector3_Vector3_0;
	}
}
