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

namespace RootMotion
{
	// Token: 0x0200040A RID: 1034
	public static class V3Tools : Il2CppSystem.Object
	{
		// Token: 0x06007E3E RID: 32318 RVA: 0x00204DF0 File Offset: 0x00202FF0
		[CallerCount(3)]
		[CachedScanResults(RefRangeStart = 623525, RefRangeEnd = 623528, XrefRangeStart = 623522, XrefRangeEnd = 623525, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe static Vector3 Lerp(Vector3 fromVector, Vector3 toVector, float weight)
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref fromVector;
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref toVector;
			ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref weight;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(V3Tools.NativeMethodInfoPtr_Lerp_Public_Static_Vector3_Vector3_Vector3_Single_0, 0, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

		// Token: 0x06007E3F RID: 32319 RVA: 0x00204E6C File Offset: 0x0020306C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 623528, XrefRangeEnd = 623529, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe static Vector3 Slerp(Vector3 fromVector, Vector3 toVector, float weight)
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref fromVector;
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref toVector;
			ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref weight;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(V3Tools.NativeMethodInfoPtr_Slerp_Public_Static_Vector3_Vector3_Vector3_Single_0, 0, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

		// Token: 0x06007E40 RID: 32320 RVA: 0x00204EE8 File Offset: 0x002030E8
		[CallerCount(8)]
		[CachedScanResults(RefRangeStart = 623532, RefRangeEnd = 623540, XrefRangeStart = 623529, XrefRangeEnd = 623532, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe static Vector3 ExtractVertical(Vector3 v, Vector3 verticalAxis, float weight)
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref v;
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref verticalAxis;
			ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref weight;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(V3Tools.NativeMethodInfoPtr_ExtractVertical_Public_Static_Vector3_Vector3_Vector3_Single_0, 0, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

		// Token: 0x06007E41 RID: 32321 RVA: 0x00204F64 File Offset: 0x00203164
		[CallerCount(11)]
		[CachedScanResults(RefRangeStart = 623544, RefRangeEnd = 623555, XrefRangeStart = 623540, XrefRangeEnd = 623544, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe static Vector3 ExtractHorizontal(Vector3 v, Vector3 normal, float weight)
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref v;
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref normal;
			ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref weight;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(V3Tools.NativeMethodInfoPtr_ExtractHorizontal_Public_Static_Vector3_Vector3_Vector3_Single_0, 0, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

		// Token: 0x06007E42 RID: 32322 RVA: 0x00204FE0 File Offset: 0x002031E0
		[CallerCount(2)]
		[CachedScanResults(RefRangeStart = 623563, RefRangeEnd = 623565, XrefRangeStart = 623555, XrefRangeEnd = 623563, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe static Vector3 ClampDirection(Vector3 direction, Vector3 normalDirection, float clampWeight, int clampSmoothing, out bool changed)
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)5) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref direction;
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref normalDirection;
			ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref clampWeight;
			ptr[checked(unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref clampSmoothing;
			ptr[checked(unchecked((UIntPtr)4) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = &changed;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(V3Tools.NativeMethodInfoPtr_ClampDirection_Public_Static_Vector3_Vector3_Vector3_Single_Int32_byref_Boolean_0, 0, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

		// Token: 0x06007E43 RID: 32323 RVA: 0x00205080 File Offset: 0x00203280
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 623565, XrefRangeEnd = 623572, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe static Vector3 ClampDirection(Vector3 direction, Vector3 normalDirection, float clampWeight, int clampSmoothing, out float clampValue)
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)5) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref direction;
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref normalDirection;
			ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref clampWeight;
			ptr[checked(unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref clampSmoothing;
			ptr[checked(unchecked((UIntPtr)4) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = &clampValue;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(V3Tools.NativeMethodInfoPtr_ClampDirection_Public_Static_Vector3_Vector3_Vector3_Single_Int32_byref_Single_0, 0, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

		// Token: 0x06007E44 RID: 32324 RVA: 0x00205120 File Offset: 0x00203320
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 623575, RefRangeEnd = 623576, XrefRangeStart = 623572, XrefRangeEnd = 623575, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe static Vector3 LineToPlane(Vector3 origin, Vector3 direction, Vector3 planeNormal, Vector3 planePoint)
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)4) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref origin;
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref direction;
			ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref planeNormal;
			ptr[checked(unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref planePoint;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(V3Tools.NativeMethodInfoPtr_LineToPlane_Public_Static_Vector3_Vector3_Vector3_Vector3_Vector3_0, 0, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

		// Token: 0x06007E45 RID: 32325 RVA: 0x002051AC File Offset: 0x002033AC
		[CallerCount(5)]
		[CachedScanResults(RefRangeStart = 623581, RefRangeEnd = 623586, XrefRangeStart = 623576, XrefRangeEnd = 623581, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe static Vector3 PointToPlane(Vector3 point, Vector3 planePosition, Vector3 planeNormal)
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref point;
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref planePosition;
			ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref planeNormal;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(V3Tools.NativeMethodInfoPtr_PointToPlane_Public_Static_Vector3_Vector3_Vector3_Vector3_0, 0, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

		// Token: 0x06007E46 RID: 32326 RVA: 0x00205228 File Offset: 0x00203428
		// Note: this type is marked as 'beforefieldinit'.
		static V3Tools()
		{
			Il2CppClassPointerStore<V3Tools>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "RootMotion", "V3Tools");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<V3Tools>.NativeClassPtr);
			V3Tools.NativeMethodInfoPtr_Lerp_Public_Static_Vector3_Vector3_Vector3_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<V3Tools>.NativeClassPtr, 100672946);
			V3Tools.NativeMethodInfoPtr_Slerp_Public_Static_Vector3_Vector3_Vector3_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<V3Tools>.NativeClassPtr, 100672947);
			V3Tools.NativeMethodInfoPtr_ExtractVertical_Public_Static_Vector3_Vector3_Vector3_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<V3Tools>.NativeClassPtr, 100672948);
			V3Tools.NativeMethodInfoPtr_ExtractHorizontal_Public_Static_Vector3_Vector3_Vector3_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<V3Tools>.NativeClassPtr, 100672949);
			V3Tools.NativeMethodInfoPtr_ClampDirection_Public_Static_Vector3_Vector3_Vector3_Single_Int32_byref_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<V3Tools>.NativeClassPtr, 100672950);
			V3Tools.NativeMethodInfoPtr_ClampDirection_Public_Static_Vector3_Vector3_Vector3_Single_Int32_byref_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<V3Tools>.NativeClassPtr, 100672951);
			V3Tools.NativeMethodInfoPtr_LineToPlane_Public_Static_Vector3_Vector3_Vector3_Vector3_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<V3Tools>.NativeClassPtr, 100672952);
			V3Tools.NativeMethodInfoPtr_PointToPlane_Public_Static_Vector3_Vector3_Vector3_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<V3Tools>.NativeClassPtr, 100672953);
		}

		// Token: 0x06007E47 RID: 32327 RVA: 0x0000A74C File Offset: 0x0000894C
		public V3Tools(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x040054F3 RID: 21747
		private static readonly IntPtr NativeMethodInfoPtr_Lerp_Public_Static_Vector3_Vector3_Vector3_Single_0;

		// Token: 0x040054F4 RID: 21748
		private static readonly IntPtr NativeMethodInfoPtr_Slerp_Public_Static_Vector3_Vector3_Vector3_Single_0;

		// Token: 0x040054F5 RID: 21749
		private static readonly IntPtr NativeMethodInfoPtr_ExtractVertical_Public_Static_Vector3_Vector3_Vector3_Single_0;

		// Token: 0x040054F6 RID: 21750
		private static readonly IntPtr NativeMethodInfoPtr_ExtractHorizontal_Public_Static_Vector3_Vector3_Vector3_Single_0;

		// Token: 0x040054F7 RID: 21751
		private static readonly IntPtr NativeMethodInfoPtr_ClampDirection_Public_Static_Vector3_Vector3_Vector3_Single_Int32_byref_Boolean_0;

		// Token: 0x040054F8 RID: 21752
		private static readonly IntPtr NativeMethodInfoPtr_ClampDirection_Public_Static_Vector3_Vector3_Vector3_Single_Int32_byref_Single_0;

		// Token: 0x040054F9 RID: 21753
		private static readonly IntPtr NativeMethodInfoPtr_LineToPlane_Public_Static_Vector3_Vector3_Vector3_Vector3_Vector3_0;

		// Token: 0x040054FA RID: 21754
		private static readonly IntPtr NativeMethodInfoPtr_PointToPlane_Public_Static_Vector3_Vector3_Vector3_Vector3_0;
	}
}
