scripts
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine
|
||||
{
|
||||
// Token: 0x0200007F RID: 127
|
||||
public sealed class LineUtility
|
||||
{
|
||||
// Token: 0x060008F2 RID: 2290
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
internal static extern void GeneratePointsToKeep3D(object pointsList, float tolerance, object pointsToKeepList);
|
||||
|
||||
// Token: 0x060008F3 RID: 2291
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
internal static extern void GeneratePointsToKeep2D(object pointsList, float tolerance, object pointsToKeepList);
|
||||
|
||||
// Token: 0x060008F4 RID: 2292
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
internal static extern void GenerateSimplifiedPoints3D(object pointsList, float tolerance, object simplifiedPoints);
|
||||
|
||||
// Token: 0x060008F5 RID: 2293
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
internal static extern void GenerateSimplifiedPoints2D(object pointsList, float tolerance, object simplifiedPoints);
|
||||
|
||||
// Token: 0x060008F6 RID: 2294 RVA: 0x0000B0A0 File Offset: 0x000092A0
|
||||
public static void Simplify(List<Vector3> points, float tolerance, List<int> pointsToKeep)
|
||||
{
|
||||
if (points == null)
|
||||
{
|
||||
throw new ArgumentNullException("points");
|
||||
}
|
||||
if (pointsToKeep == null)
|
||||
{
|
||||
throw new ArgumentNullException("pointsToKeep");
|
||||
}
|
||||
LineUtility.GeneratePointsToKeep3D(points, tolerance, pointsToKeep);
|
||||
}
|
||||
|
||||
// Token: 0x060008F7 RID: 2295 RVA: 0x0000B0D0 File Offset: 0x000092D0
|
||||
public static void Simplify(List<Vector3> points, float tolerance, List<Vector3> simplifiedPoints)
|
||||
{
|
||||
if (points == null)
|
||||
{
|
||||
throw new ArgumentNullException("points");
|
||||
}
|
||||
if (simplifiedPoints == null)
|
||||
{
|
||||
throw new ArgumentNullException("simplifiedPoints");
|
||||
}
|
||||
LineUtility.GenerateSimplifiedPoints3D(points, tolerance, simplifiedPoints);
|
||||
}
|
||||
|
||||
// Token: 0x060008F8 RID: 2296 RVA: 0x0000B100 File Offset: 0x00009300
|
||||
public static void Simplify(List<Vector2> points, float tolerance, List<int> pointsToKeep)
|
||||
{
|
||||
if (points == null)
|
||||
{
|
||||
throw new ArgumentNullException("points");
|
||||
}
|
||||
if (pointsToKeep == null)
|
||||
{
|
||||
throw new ArgumentNullException("pointsToKeep");
|
||||
}
|
||||
LineUtility.GeneratePointsToKeep2D(points, tolerance, pointsToKeep);
|
||||
}
|
||||
|
||||
// Token: 0x060008F9 RID: 2297 RVA: 0x0000B130 File Offset: 0x00009330
|
||||
public static void Simplify(List<Vector2> points, float tolerance, List<Vector2> simplifiedPoints)
|
||||
{
|
||||
if (points == null)
|
||||
{
|
||||
throw new ArgumentNullException("points");
|
||||
}
|
||||
if (simplifiedPoints == null)
|
||||
{
|
||||
throw new ArgumentNullException("simplifiedPoints");
|
||||
}
|
||||
LineUtility.GenerateSimplifiedPoints2D(points, tolerance, simplifiedPoints);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user