-
-
Notifications
You must be signed in to change notification settings - Fork 240
Expand file tree
/
Copy pathIntersectionLineLine2.cs
More file actions
33 lines (29 loc) · 795 Bytes
/
IntersectionLineLine2.cs
File metadata and controls
33 lines (29 loc) · 795 Bytes
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
using UnityEngine;
namespace ProceduralToolkit
{
public struct IntersectionLineLine2
{
public IntersectionType type;
public Vector2 point;
public static IntersectionLineLine2 None()
{
return new IntersectionLineLine2 {type = IntersectionType.None};
}
public static IntersectionLineLine2 Point(Vector2 point)
{
return new IntersectionLineLine2
{
type = IntersectionType.Point,
point = point,
};
}
public static IntersectionLineLine2 Line(Vector2 point)
{
return new IntersectionLineLine2
{
type = IntersectionType.Line,
point = point,
};
}
}
}