Jaa


SpatialCoordinateSystem.TryGetTransformTo(SpatialCoordinateSystem) Method

Definition

Provides a transform matrix that you can use to convert geometry expressed in one coordinate system to another coordinate system.

public:
 virtual IReference<float4x4> ^ TryGetTransformTo(SpatialCoordinateSystem ^ target) = TryGetTransformTo;
IReference<float4x4> TryGetTransformTo(SpatialCoordinateSystem const& target);
public System.Nullable<Matrix4x4> TryGetTransformTo(SpatialCoordinateSystem target);
function tryGetTransformTo(target)
Public Function TryGetTransformTo (target As SpatialCoordinateSystem) As Nullable(Of Matrix4x4)

Parameters

target
SpatialCoordinateSystem

The target coordinate system that you want to transform geometry to.

Returns

If the transformation is successful, this parameter returns the Matrix4x4 structure that you can use to transform geometry from being represented in the source SpatialCoordinateSystem to the specified target coordinate system.

Examples

See Camera stream coordinate mapper sample, Camera stream correlation sample, Holographic face tracking sample, Holographic spatial mapping sample, Holographic spatial stage sample, and Tag-along hologram sample.

Remarks

This method will return null if the target coordinate system cannot be located relative to this one at the moment.

Applies to

See also