SpatialGraphPlacement.TryCreate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes an object which maps coordinates in an application-defined coordinate space onto a set of corresponding locations in the Spatial Graph. The placement of the origin of the coordinate space depends on where it is being viewed from, and will be computed by weighting each control point by its proximity to the view. This enables large objects or scenes to smoothly span across a large physical space as the user moves around, despite non-rigid correspondence between the spaces, e.g. due to head tracking error. A reference coordinate system must be provided to enable efficient per-frame computation of the pose of the origin of the mapped space. The view pose provided each frame must be expressed in this reference coordinate system, though for convenience this may be moderated through a separate "world" coordinate system if necessary (for example, the native coordinate system used by the application versus the interop coordinate system used to initialize the placement).
public static Microsoft.Azure.ObjectAnchors.SpatialGraph.SpatialGraphPlacement TryCreate (Microsoft.Azure.ObjectAnchors.SpatialGraph.SpatialGraphCoordinateSystem referenceCoordinateSystem, Microsoft.Azure.ObjectAnchors.SpatialGraph.SpatialGraphPlacementControlPoint[] controlPoints);
static member TryCreate : Microsoft.Azure.ObjectAnchors.SpatialGraph.SpatialGraphCoordinateSystem * Microsoft.Azure.ObjectAnchors.SpatialGraph.SpatialGraphPlacementControlPoint[] -> Microsoft.Azure.ObjectAnchors.SpatialGraph.SpatialGraphPlacement
Public Shared Function TryCreate (referenceCoordinateSystem As SpatialGraphCoordinateSystem, controlPoints As SpatialGraphPlacementControlPoint()) As SpatialGraphPlacement
Parameters
- referenceCoordinateSystem
- SpatialGraphCoordinateSystem
The Spatial Graph coordinate system which will be used to compute view-dependent poses.
- controlPoints
- SpatialGraphPlacementControlPoint[]
The control points which relate coordinates in the mapped space to locations in the Spatial Graph.