Show / Hide Table of Contents

    Class DirectionComparer

    A comparer used to order collections of vectors according to their "sameness" with the provided vector.

    Inheritance
    System.Object
    DirectionComparer
    Implements
    System.Collections.Generic.IComparer<Vector3>
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Elements.Search
    Assembly: Hypar.Elements.dll
    Syntax
    public class DirectionComparer : IComparer<Vector3>

    Constructors

    DirectionComparer(Vector3)

    Construct a direction comparer.

    Declaration
    public DirectionComparer(Vector3 v)
    Parameters
    Type Name Description
    Vector3 v

    The vector against which to compare.

    Methods

    Compare(Vector3, Vector3)

    Compare two vectors.

    Declaration
    public int Compare(Vector3 x, Vector3 y)
    Parameters
    Type Name Description
    Vector3 x

    The first vector.

    Vector3 y

    The second vector.

    Returns
    Type Description
    System.Int32

    Implements

    System.Collections.Generic.IComparer<T>