AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
Edge.cs
Go to the documentation of this file.
1 // Copyright(c) Microsoft Corporation.All rights reserved.
2 // Licensed under the MIT License. See LICENSE in the project root for license information.
3 
4 using UnityEngine;
5 
6 namespace HoloToolkit.Unity.Boundary
7 {
11  public struct Edge
12  {
13  public float Ax;
14  public float Ay;
15  public float Bx;
16  public float By;
17 
18  public Edge(float ax, float ay, float bx, float by)
19  {
20  Ax = ax;
21  Ay = ay;
22  Bx = bx;
23  By = by;
24  }
25 
26  public Edge(Vector2 pointA, Vector2 pointB)
27  {
28  Ax = pointA.x;
29  Bx = pointB.x;
30  Ay = pointA.y;
31  By = pointB.y;
32  }
33  }
34 }
Edge(Vector2 pointA, Vector2 pointB)
Definition: Edge.cs:26
Edge(float ax, float ay, float bx, float by)
Definition: Edge.cs:18
Helper struct to hold an edge.
Definition: Edge.cs:11