SpatialInteractionSourceProperties.TryGetLocation 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.
Get the position, orientation and velocity of the hand or motion controller, expressed in the specified coordinate system.
public:
virtual SpatialInteractionSourceLocation ^ TryGetLocation(SpatialCoordinateSystem ^ coordinateSystem) = TryGetLocation;
SpatialInteractionSourceLocation TryGetLocation(SpatialCoordinateSystem const& coordinateSystem);
public SpatialInteractionSourceLocation TryGetLocation(SpatialCoordinateSystem coordinateSystem);
function tryGetLocation(coordinateSystem)
Public Function TryGetLocation (coordinateSystem As SpatialCoordinateSystem) As SpatialInteractionSourceLocation
Parameters
- coordinateSystem
- SpatialCoordinateSystem
The coordinate system in which to express the hand's location.
Returns
The location.
Remarks
This method will return null if the specified coordinate system cannot be located at the moment.