Share via


SpatialGraphPlacement.ComputeOriginForView(SpatialPose, Matrix4x4) Method

Definition

Computes the origin of the mapped coordinate space, optimized for the specified view. The view and origin poses are expressed in an app-defined "world" coordinate system, determined by the transform provided relative to the reference coordinate system used to initialize this placement. The pose is computed by weighting the control points according to their proximity to the view.

public Microsoft.Azure.ObjectAnchors.SpatialGraph.SpatialPose ComputeOriginForView (Microsoft.Azure.ObjectAnchors.SpatialGraph.SpatialPose viewInWorld, System.Numerics.Matrix4x4 worldToReference);
member this.ComputeOriginForView : Microsoft.Azure.ObjectAnchors.SpatialGraph.SpatialPose * System.Numerics.Matrix4x4 -> Microsoft.Azure.ObjectAnchors.SpatialGraph.SpatialPose
Public Function ComputeOriginForView (viewInWorld As SpatialPose, worldToReference As Matrix4x4) As SpatialPose

Parameters

viewInWorld
SpatialPose

The pose of the view to optimize for, expressed in the application's world coordinate system.

worldToReference
Matrix4x4

Transform from the application's world coordinate system to the reference coordinate system used to obtain this placement. This may be identity if the world and reference coordinate systems are the same.

Returns

Applies to