Show / Hide Table of Contents

    Class RectangleLineDataProvider

    Defines a line in the shape of a rectangle.

    Inheritance
    Object
    BaseMixedRealityLineDataProvider
    RectangleLineDataProvider
    Inherited Members
    BaseMixedRealityLineDataProvider.UnclampedWorldLengthSearchSteps
    BaseMixedRealityLineDataProvider.UnClampedWorldLength
    BaseMixedRealityLineDataProvider.LineStartClamp
    BaseMixedRealityLineDataProvider.LineEndClamp
    BaseMixedRealityLineDataProvider.LineTransform
    BaseMixedRealityLineDataProvider.TransformMode
    BaseMixedRealityLineDataProvider.RotationMode
    BaseMixedRealityLineDataProvider.FlipUpVector
    BaseMixedRealityLineDataProvider.OriginOffset
    BaseMixedRealityLineDataProvider.ManualUpVectorBlend
    BaseMixedRealityLineDataProvider.ManualUpVectors
    BaseMixedRealityLineDataProvider.VelocitySearchRange
    BaseMixedRealityLineDataProvider.Distorters
    BaseMixedRealityLineDataProvider.DistortionEnabled
    BaseMixedRealityLineDataProvider.DistortionMode
    BaseMixedRealityLineDataProvider.DistortionStrength
    BaseMixedRealityLineDataProvider.UniformDistortionStrength
    BaseMixedRealityLineDataProvider.FirstPoint
    BaseMixedRealityLineDataProvider.LastPoint
    BaseMixedRealityLineDataProvider.OnEnable()
    BaseMixedRealityLineDataProvider.LateUpdate()
    BaseMixedRealityLineDataProvider.GetNormalizedLengthFromWorldLength(Single, Int32)
    BaseMixedRealityLineDataProvider.GetVelocity(Single)
    BaseMixedRealityLineDataProvider.GetRotation(Single, LineRotationMode)
    BaseMixedRealityLineDataProvider.GetRotation(Int32, LineRotationMode)
    BaseMixedRealityLineDataProvider.GetPoint(Single)
    BaseMixedRealityLineDataProvider.GetUnClampedPoint(Single)
    BaseMixedRealityLineDataProvider.GetPoint(Int32)
    BaseMixedRealityLineDataProvider.SetPoint(Int32, Vector3)
    BaseMixedRealityLineDataProvider.GetClosestPoint(Vector3, Int32, Int32)
    BaseMixedRealityLineDataProvider.GetNormalizedLengthFromWorldPos(Vector3, Int32, Int32)
    BaseMixedRealityLineDataProvider.UpdateMatrix()
    Namespace: Microsoft.MixedReality.Toolkit.Utilities
    Assembly: cs.temp.dll.dll
    Syntax
    public class RectangleLineDataProvider : BaseMixedRealityLineDataProvider

    Properties

    Height

    Declaration
    public float Height { get; set; }
    Property Value
    Type Description
    Single

    Loops

    Declaration
    public override bool Loops { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    BaseMixedRealityLineDataProvider.Loops

    PointCount

    Declaration
    public override int PointCount { get; }
    Property Value
    Type Description
    Int32
    Overrides
    BaseMixedRealityLineDataProvider.PointCount

    Width

    Declaration
    public float Width { get; set; }
    Property Value
    Type Description
    Single

    ZOffset

    Declaration
    public float ZOffset { get; set; }
    Property Value
    Type Description
    Single

    Methods

    DrawUnselectedGizmosPreview()

    Declaration
    protected override void DrawUnselectedGizmosPreview()
    Overrides
    BaseMixedRealityLineDataProvider.DrawUnselectedGizmosPreview()

    GetPointInternal(Int32)

    Get a point based on point index Point index will be pre-clamped

    Declaration
    protected override Vector3 GetPointInternal(int pointIndex)
    Parameters
    Type Name Description
    Int32 pointIndex
    Returns
    Type Description
    Vector3
    Overrides
    BaseMixedRealityLineDataProvider.GetPointInternal(Int32)

    GetPointInternal(Single)

    When we get interpolated points we subdivide the square so our sampling has more to work with

    Declaration
    protected override Vector3 GetPointInternal(float normalizedDistance)
    Parameters
    Type Name Description
    Single normalizedDistance
    Returns
    Type Description
    Vector3
    Overrides
    BaseMixedRealityLineDataProvider.GetPointInternal(Single)

    GetUnClampedWorldLengthInternal()

    Get the UnClamped world length of the line

    Declaration
    protected override float GetUnClampedWorldLengthInternal()
    Returns
    Type Description
    Single
    Overrides
    BaseMixedRealityLineDataProvider.GetUnClampedWorldLengthInternal()

    GetUpVectorInternal(Single)

    Gets the up vector at a normalized length along line (used for rotation)

    Declaration
    protected override Vector3 GetUpVectorInternal(float normalizedLength)
    Parameters
    Type Name Description
    Single normalizedLength
    Returns
    Type Description
    Vector3
    Overrides
    BaseMixedRealityLineDataProvider.GetUpVectorInternal(Single)

    SetPointInternal(Int32, Vector3)

    Sets the point at index.

    Declaration
    protected override void SetPointInternal(int pointIndex, Vector3 point)
    Parameters
    Type Name Description
    Int32 pointIndex
    Vector3 point
    Overrides
    BaseMixedRealityLineDataProvider.SetPointInternal(Int32, Vector3)
    Back to top Generated by DocFX