July 2017
Beginner to intermediate
390 pages
10h 53m
English
One of the classes the framework provides is the SpatialLocator, in the Windows.Perception.Spatial namespace. You can get a reference to one by calling the static method GetDefault() on that class. You never instantiate one yourself: there is no public constructor available.
This class is a helper class that helps you find the frame of reference. To do this, all you need to do is call the extremely long-named CreateStationaryFrameOfReferenceAtCurrentLocation() method. This creates a new coordinate system for you, centered around the current position of your device, with the heading in the direction you are looking at. The template we have been using so far does exactly this: in your main ...
Read now
Unlock full access