Class FPDecomposer
- Namespace
- Global
- Assembly
- Assembly-CSharp.dll
public static class FPDecomposer
- Inheritance
-
FPDecomposer
- Inherited Members
-
Fields
MAX_POLYGON_VERTICES
public static int MAX_POLYGON_VERTICES
Field Value
- int
Methods
At(int, List<Vector2>)
public static Vector2 At(int i, List<Vector2> vertices)
Parameters
i int
vertices List<Vector2>
Returns
- Vector2
CanSee(int, int, List<Vector2>)
public static bool CanSee(int i, int j, List<Vector2> vertices)
Parameters
i int
j int
vertices List<Vector2>
Returns
- bool
CollinearSimplify(Vector2[], float)
public static Vector2[] CollinearSimplify(Vector2[] vertices, float collinearityTolerance)
Parameters
vertices Vector2[]
collinearityTolerance float
Returns
- Vector2[]
Copy(int, int, List<Vector2>)
public static List<Vector2> Copy(int i, int j, List<Vector2> vertices)
Parameters
i int
j int
vertices List<Vector2>
Returns
- List<Vector2>
Decompose(List<Vector2>)
public static List<Vector2[]> Decompose(List<Vector2> vertices)
Parameters
vertices List<Vector2>
Returns
- List<Vector2[]>
Left(Vector2, Vector2, Vector2)
public static bool Left(Vector2 a, Vector2 b, Vector2 c)
Parameters
a Vector2
b Vector2
c Vector2
Returns
- bool
LeftOn(Vector2, Vector2, Vector2)
public static bool LeftOn(Vector2 a, Vector2 b, Vector2 c)
Parameters
a Vector2
b Vector2
c Vector2
Returns
- bool
public static Vector2 LineTools_LineIntersect(Vector2 p1, Vector2 p2, Vector2 q1, Vector2 q2)
Parameters
p1 Vector2
p2 Vector2
q1 Vector2
q2 Vector2
Returns
- Vector2
public static bool LineTools_LineIntersect(Vector2 point1, Vector2 point2, Vector2 point3, Vector2 point4, bool firstIsSegment, bool secondIsSegment, out Vector2 intersectionPoint)
Parameters
point1 Vector2
point2 Vector2
point3 Vector2
point4 Vector2
firstIsSegment bool
secondIsSegment bool
intersectionPoint Vector2
Returns
- bool
public static bool LineTools_LineIntersect(Vector2 point1, Vector2 point2, Vector2 point3, Vector2 point4, out Vector2 intersectionPoint)
Parameters
point1 Vector2
point2 Vector2
point3 Vector2
point4 Vector2
intersectionPoint Vector2
Returns
- bool
public static bool LineTools_LineIntersect(ref Vector2 point1, ref Vector2 point2, ref Vector2 point3, ref Vector2 point4, bool firstIsSegment, bool secondIsSegment, out Vector2 point)
Parameters
point1 Vector2
point2 Vector2
point3 Vector2
point4 Vector2
firstIsSegment bool
secondIsSegment bool
point Vector2
Returns
- bool
public static bool LineTools_LineIntersect(ref Vector2 point1, ref Vector2 point2, ref Vector2 point3, ref Vector2 point4, out Vector2 intersectionPoint)
Parameters
point1 Vector2
point2 Vector2
point3 Vector2
point4 Vector2
intersectionPoint Vector2
Returns
- bool
MathUtils_Area(Vector2, Vector2, Vector2)
public static float MathUtils_Area(Vector2 a, Vector2 b, Vector2 c)
Parameters
a Vector2
b Vector2
c Vector2
Returns
- float
MathUtils_Area(ref Vector2, ref Vector2, ref Vector2)
public static float MathUtils_Area(ref Vector2 a, ref Vector2 b, ref Vector2 c)
Parameters
a Vector2
b Vector2
c Vector2
Returns
- float
MathUtils_Collinear(ref Vector2, ref Vector2, ref Vector2)
public static bool MathUtils_Collinear(ref Vector2 a, ref Vector2 b, ref Vector2 c)
Parameters
a Vector2
b Vector2
c Vector2
Returns
- bool
MathUtils_Collinear(ref Vector2, ref Vector2, ref Vector2, float)
public static bool MathUtils_Collinear(ref Vector2 a, ref Vector2 b, ref Vector2 c, float tolerance)
Parameters
a Vector2
b Vector2
c Vector2
tolerance float
Returns
- bool
MathUtils_FloatEquals(float, float)
public static bool MathUtils_FloatEquals(float value1, float value2)
Parameters
value1 float
value2 float
Returns
- bool
MathUtils_FloatEquals(float, float, float)
public static bool MathUtils_FloatEquals(float value1, float value2, float delta)
Parameters
value1 float
value2 float
delta float
Returns
- bool
MathUtils_FloatInRange(float, float, float)
public static bool MathUtils_FloatInRange(float value, float min, float max)
Parameters
value float
min float
max float
Returns
- bool
Reflex(int, List<Vector2>)
public static bool Reflex(int i, List<Vector2> vertices)
Parameters
i int
vertices List<Vector2>
Returns
- bool
Right(int, List<Vector2>)
public static bool Right(int i, List<Vector2> vertices)
Parameters
i int
vertices List<Vector2>
Returns
- bool
Right(Vector2, Vector2, Vector2)
public static bool Right(Vector2 a, Vector2 b, Vector2 c)
Parameters
a Vector2
b Vector2
c Vector2
Returns
- bool
RightOn(Vector2, Vector2, Vector2)
public static bool RightOn(Vector2 a, Vector2 b, Vector2 c)
Parameters
a Vector2
b Vector2
c Vector2
Returns
- bool
SquareDist(Vector2, Vector2)
public static float SquareDist(Vector2 a, Vector2 b)
Parameters
a Vector2
b Vector2
Returns
- float