Share via


SpatialGraphInteropPreview.TryCreateFrameOfReference Method

Definition

Overloads

TryCreateFrameOfReference(SpatialCoordinateSystem)

Creates an interop frame of reference based on a given spatial coordinate system.

TryCreateFrameOfReference(SpatialCoordinateSystem, Vector3)

Creates an interop frame of reference based on a given spatial coordinate system with its origin offset by the specified relative position.

TryCreateFrameOfReference(SpatialCoordinateSystem, Vector3, Quaternion)

Creates an interop frame of reference based on a given spatial coordinate system with its origin offset and rotated by the specified relative position and orientation.

TryCreateFrameOfReference(SpatialCoordinateSystem)

Creates an interop frame of reference based on a given spatial coordinate system.

public:
 static SpatialGraphInteropFrameOfReferencePreview ^ TryCreateFrameOfReference(SpatialCoordinateSystem ^ coordinateSystem);
/// [Windows.Foundation.Metadata.Overload("TryCreateFrameOfReference")]
 static SpatialGraphInteropFrameOfReferencePreview TryCreateFrameOfReference(SpatialCoordinateSystem const& coordinateSystem);
[Windows.Foundation.Metadata.Overload("TryCreateFrameOfReference")]
public static SpatialGraphInteropFrameOfReferencePreview TryCreateFrameOfReference(SpatialCoordinateSystem coordinateSystem);
function tryCreateFrameOfReference(coordinateSystem)
Public Shared Function TryCreateFrameOfReference (coordinateSystem As SpatialCoordinateSystem) As SpatialGraphInteropFrameOfReferencePreview

Parameters

coordinateSystem
SpatialCoordinateSystem

The coordinate system.

Returns

The interop frame of reference.

Attributes

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Applies to

TryCreateFrameOfReference(SpatialCoordinateSystem, Vector3)

Creates an interop frame of reference based on a given spatial coordinate system with its origin offset by the specified relative position.

public:
 static SpatialGraphInteropFrameOfReferencePreview ^ TryCreateFrameOfReference(SpatialCoordinateSystem ^ coordinateSystem, float3 relativePosition);
/// [Windows.Foundation.Metadata.Overload("TryCreateFrameOfReferenceWithPosition")]
 static SpatialGraphInteropFrameOfReferencePreview TryCreateFrameOfReference(SpatialCoordinateSystem const& coordinateSystem, float3 const& relativePosition);
[Windows.Foundation.Metadata.Overload("TryCreateFrameOfReferenceWithPosition")]
public static SpatialGraphInteropFrameOfReferencePreview TryCreateFrameOfReference(SpatialCoordinateSystem coordinateSystem, Vector3 relativePosition);
function tryCreateFrameOfReference(coordinateSystem, relativePosition)
Public Shared Function TryCreateFrameOfReference (coordinateSystem As SpatialCoordinateSystem, relativePosition As Vector3) As SpatialGraphInteropFrameOfReferencePreview

Parameters

coordinateSystem
SpatialCoordinateSystem

The coordinate system.

relativePosition
Vector3 Vector3

float3

The position of the interop frame's origin relative to the origin of the coordinate system.

Returns

The interop frame of reference.

Attributes

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Applies to

TryCreateFrameOfReference(SpatialCoordinateSystem, Vector3, Quaternion)

Creates an interop frame of reference based on a given spatial coordinate system with its origin offset and rotated by the specified relative position and orientation.

public:
 static SpatialGraphInteropFrameOfReferencePreview ^ TryCreateFrameOfReference(SpatialCoordinateSystem ^ coordinateSystem, float3 relativePosition, quaternion relativeOrientation);
/// [Windows.Foundation.Metadata.Overload("TryCreateFrameOfReferenceWithPositionAndOrientation")]
 static SpatialGraphInteropFrameOfReferencePreview TryCreateFrameOfReference(SpatialCoordinateSystem const& coordinateSystem, float3 const& relativePosition, quaternion const& relativeOrientation);
[Windows.Foundation.Metadata.Overload("TryCreateFrameOfReferenceWithPositionAndOrientation")]
public static SpatialGraphInteropFrameOfReferencePreview TryCreateFrameOfReference(SpatialCoordinateSystem coordinateSystem, Vector3 relativePosition, Quaternion relativeOrientation);
function tryCreateFrameOfReference(coordinateSystem, relativePosition, relativeOrientation)
Public Shared Function TryCreateFrameOfReference (coordinateSystem As SpatialCoordinateSystem, relativePosition As Vector3, relativeOrientation As Quaternion) As SpatialGraphInteropFrameOfReferencePreview

Parameters

coordinateSystem
SpatialCoordinateSystem

The coordinate system.

relativePosition
Vector3 Vector3

float3

The rigid positional offset from the coordinate system's origin to the interop frame of reference's origin, expressed within the coordinate system.

relativeOrientation
Quaternion Quaternion

quaternion

The rigid rotation from the coordinate system's origin to the interop frame of reference's origin, expressed within the coordinate system.

Returns

The interop frame of reference.

Attributes

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Applies to