Struct Edge
The Edge structure defines the points of a line segment that are used to construct a polygonal boundary.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Boundary
Assembly: cs.temp.dll.dll
Syntax
public struct Edge
Constructors
Edge(Vector2, Vector2)
Initializes the Edge structure.
Declaration
public Edge(Vector2 pointA, Vector2 pointB)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | pointA | The first point of the line segment. |
Vector2 | pointB | The second point of the line segment. |
Edge(Vector2, Vector2)
Initializes the Edge structure.
Declaration
public Edge(Vector2 pointA, Vector2 pointB)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | pointA | The first point of the line segment. |
Vector2 | pointB | The second point of the line segment. |
Edge(Vector3, Vector3)
Initializes the Edge structure.
Declaration
public Edge(Vector3 pointA, Vector3 pointB)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | pointA | The first point of the line segment. |
Vector3 | pointB | The second point of the line segment. |
Edge(Vector3, Vector3)
Initializes the Edge structure.
Declaration
public Edge(Vector3 pointA, Vector3 pointB)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | pointA | The first point of the line segment. |
Vector3 | pointB | The second point of the line segment. |
Fields
PointA
The first point of the edge line segment.
Declaration
public readonly Vector2 PointA
Field Value
Type | Description |
---|---|
Vector2 |
PointA
The first point of the edge line segment.
Declaration
public readonly Vector2 PointA
Field Value
Type | Description |
---|---|
Vector2 |
PointB
The second point of the edge line segment.
Declaration
public readonly Vector2 PointB
Field Value
Type | Description |
---|---|
Vector2 |
PointB
The second point of the edge line segment.
Declaration
public readonly Vector2 PointB
Field Value
Type | Description |
---|---|
Vector2 |