Class EdgeUtilities
The EdgeUtilities class provides functionality for working with Edge objects.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Utilities
Assembly: cs.temp.dll.dll
Syntax
public static class EdgeUtilities
Fields
InvalidPoint
A value representing an invalid point.
Declaration
public static readonly Vector2 InvalidPoint
Field Value
Type | Description |
---|---|
Vector2 |
Methods
GetIntersectionPoint(Edge, Edge)
Returns the point at which two Edge values intersect.
Declaration
public static Vector2 GetIntersectionPoint(Edge edgeA, Edge edgeB)
Parameters
Type | Name | Description |
---|---|---|
Edge | edgeA | The first edge |
Edge | edgeB | The second edge |
Returns
Type | Description |
---|---|
Vector2 | A Vector2 representing the point at which the two edges intersect, InscribedRectangleDescription.InvalidPoint otherwise. |
IsInsideBoundary(Edge[], Vector2)
Determines if the specified point is within the provided geometry.
Declaration
public static bool IsInsideBoundary(Edge[] geometryEdges, Vector2 point)
Parameters
Type | Name | Description |
---|---|---|
Edge[] | geometryEdges | The geometry for which we are checking the point. |
Vector2 | point | The point being checked. |
Returns
Type | Description |
---|---|
Boolean | True if the point falls within the geometry, false otherwise. |
IsValidPoint(Vector2)
Checks to see if a point is valid.
Declaration
public static bool IsValidPoint(Vector2 point)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | point | The point to check. |
Returns
Type | Description |
---|---|
Boolean | True if the point is valid, false otherwise. |
Remarks
A point is considered invalid if any one of its coordinate values are infinite or not a number.