• Home
  • Guides
  • API Documentation
WLT documentation has moved.

We are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the Core WLT section of the dot net API explorer and related pages. Existing content will remain here but will not be updated further.

  • API Documentation
  • Reference
  • Microsoft.MixedReality.WorldLocking.Core
  • Orienter
Search Results for

    Show / Hide Table of Contents
    • Reference
      • Microsoft.MixedReality.WorldLocking.ASA
        • IBinder
        • IBindingOracle
        • ILocalPeg
        • IPublisher
        • LocalPegAndProperties
        • PublisherASA
        • PublisherReadiness
        • ReadinessStatus
        • SpacePinASA
        • SpacePinASA.KeyValPair
        • SpacePinBinder
        • SpacePinBinderFile
        • SpacePinCloudBinding
      • Microsoft.MixedReality.WorldLocking.ASA.Examples
        • ActionCube
        • ActionPublish
        • PlatformMenuSelector
        • ScreenSpacer
        • SpacePinASAManipulation
        • Startup
      • Microsoft.MixedReality.WorldLocking.Core
        • AdjustLocationDelegate
        • AdjustStateDelegate
        • AlignmentManager
        • AlignSubtree
        • AnchorManager
        • AnchorManager.SpongyAnchorWithId
        • AnchorManagerARCore
        • AnchorManagerNull
        • AnchorManagerWSA
        • AnchorSettings
        • AnchorSettings.AnchorSubsystem
        • AttachmentPoint
        • AttachmentPointStateType
        • Diagnostics
        • Diagnostics.Record
        • DiagnosticsSettings
        • Fragment
        • HeadPoseTrackerCamera
        • HeadPoseTrackerXR
        • IAlignmentManager
        • IAnchorManager
        • IAttachmentPoint
        • IAttachmentPointManager
        • IFragmentManager
        • IHeadPoseTracker
        • IOrientable
        • IOrienter
        • LinkageSettings
        • ManagerSettings
        • Orienter
        • Orienter.WeightedRotation
        • OrienterThreeBody
        • PoseExtensions
        • PostAlignmentLoadedDelegate
        • RefitNotificationDelegate
        • ResourceMirror
        • ResourceMirror.CompareToResource<ItemType, ResourceType>
        • ResourceMirror.CreateResource<ItemType, ResourceType>
        • ResourceMirror.DestroyResource<ResourceType>
        • ResourceMirror.UpdateResource<ItemType, ResourceType>
        • SharedDiagnosticsSettings
        • SharedManagerSettings
        • SpacePin
        • SpacePin.ModelPositionSourceEnum
        • SpacePinOrientable
        • SpongyAnchor
        • SpongyAnchorARCore
        • SpongyAnchorARF
        • SpongyAnchorNull
        • SpongyAnchorWSA
        • SpongyAnchorXR
        • TransformExtensions
        • WorldLockingContext
        • WorldLockingManager
      • Microsoft.MixedReality.WorldLocking.Core.ResourceMirrorHelper
        • IdPair<IdType, T>
      • Microsoft.MixedReality.WorldLocking.Core.Triangulator
        • Interpolant
        • ITriangulator
        • SimpleTriangulator
      • Microsoft.MixedReality.WorldLocking.Examples
        • AlignmentControl
        • CircleCam
        • DashboardCommand
        • DashboardUI
        • FallOut
        • ManipulationEndedDelegate
        • ManipulationStartedDelegate
        • PhysicsBeamSample
        • PinManipulator
        • RayPins
        • SpacePinManipulation
        • SpacePinOrientableManipulation
      • Microsoft.MixedReality.WorldLocking.Tools
        • AdjusterBase
        • AdjusterFixed
        • AdjusterMoving
        • AnchorGraphVisual
        • ConnectingLine
        • FrameVisual
        • FrozenAnchorVisual
        • FrozenSpatialMapping
        • FrozenSpatialMapping.QualityType
        • FrozenTapToAdd
        • SimpleConsole
        • SimpleSprite
        • SpacePinMeshVisualizer
        • SpacePinPercentageVisualizer
        • SpongyAnchorVisual
        • StatusToText
        • ToggleWorldAnchor
        • WorldAnchorAdapter
        • WorldLockingSetup

    Class Orienter

    The Orienter class implements IOrienter.

    Inheritance
    Object
    Orienter
    OrienterThreeBody
    Implements
    IOrienter
    Namespace: Microsoft.MixedReality.WorldLocking.Core
    Assembly: cs.temp.dll.dll
    Syntax
    public class Orienter : MonoBehaviour, IOrienter
    Remarks

    It derives from MonoBehaviour only to facilitate assigning it in the Inspector. Alternatively, it could be implemented as a singleton service. There are pros and cons in either direction. The MonoBehaviour assigned in inspector was chosen to make explicit the dependency, rather than a dependency hidden by a static get internally.

    Fields

    actives

    Orientables in the currently processing fragment.

    Declaration
    protected readonly List<Orienter.WeightedRotation> actives
    Field Value
    Type Description
    List<Orienter.WeightedRotation>

    Properties

    AlignmentManager

    Declaration
    public IAlignmentManager AlignmentManager { get; set; }
    Property Value
    Type Description
    IAlignmentManager

    Methods

    AverageRotation(Orienter.WeightedRotation, Orienter.WeightedRotation)

    Compute a new weighted rotation representing the two input weighted rotations.

    Declaration
    protected Orienter.WeightedRotation AverageRotation(Orienter.WeightedRotation accum, Orienter.WeightedRotation add)
    Parameters
    Type Name Description
    Orienter.WeightedRotation accum

    The accumulator rotation.

    Orienter.WeightedRotation add

    The rotation to add in.

    Returns
    Type Description
    Orienter.WeightedRotation

    A new aggregate weighted rotation.

    ComputeRotation(IOrientable, IOrientable)

    Compute the rotation that aligns a and b correctly in pinned space.

    Declaration
    protected virtual Orienter.WeightedRotation ComputeRotation(IOrientable a, IOrientable b)
    Parameters
    Type Name Description
    IOrientable a
    IOrientable b
    Returns
    Type Description
    Orienter.WeightedRotation

    ComputeRotations()

    Compute rotations by pairs, weighting by distance and averaging for each orientable.

    Declaration
    protected virtual bool ComputeRotations()
    Returns
    Type Description
    Boolean

    Register(IOrientable)

    Declaration
    public void Register(IOrientable orientable)
    Parameters
    Type Name Description
    IOrientable orientable

    Reorient(FragmentId, IAlignmentManager)

    Declaration
    public void Reorient(FragmentId fragmentId, IAlignmentManager mgr)
    Parameters
    Type Name Description
    FragmentId fragmentId
    IAlignmentManager mgr

    Unregister(IOrientable)

    Declaration
    public void Unregister(IOrientable orientable)
    Parameters
    Type Name Description
    IOrientable orientable

    Implements

    IOrienter
    In This Article
    • Fields
      • actives
    • Properties
      • AlignmentManager
    • Methods
      • AverageRotation(Orienter.WeightedRotation, Orienter.WeightedRotation)
      • ComputeRotation(IOrientable, IOrientable)
      • ComputeRotations()
      • Register(IOrientable)
      • Reorient(FragmentId, IAlignmentManager)
      • Unregister(IOrientable)
    • Implements
    Back to top Generated by DocFX