-
-
Notifications
You must be signed in to change notification settings - Fork 235
/
Copy pathIntersectionCircleCircle.cs
40 lines (35 loc) · 1.04 KB
/
IntersectionCircleCircle.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using UnityEngine;
namespace ProceduralToolkit
{
public struct IntersectionCircleCircle
{
public IntersectionType type;
public Vector2 pointA;
public Vector2 pointB;
public static IntersectionCircleCircle None()
{
return new IntersectionCircleCircle {type = IntersectionType.None};
}
public static IntersectionCircleCircle Point(Vector2 point)
{
return new IntersectionCircleCircle
{
type = IntersectionType.Point,
pointA = point,
};
}
public static IntersectionCircleCircle TwoPoints(Vector2 pointA, Vector2 pointB)
{
return new IntersectionCircleCircle
{
type = IntersectionType.TwoPoints,
pointA = pointA,
pointB = pointB,
};
}
public static IntersectionCircleCircle Circle()
{
return new IntersectionCircleCircle {type = IntersectionType.Circle};
}
}
}