Search Results for

    Show / Hide Table of Contents

    Class PolyLine2d

    Inheritance
    Object
    PolyLine2d
    Implements
    IEnumerable<Vector2d>
    IEnumerable
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: g3
    Assembly: cs.temp.dll.dll
    Syntax
    public class PolyLine2d : IEnumerable<Vector2d>, IEnumerable

    Constructors

    PolyLine2d()

    Declaration
    public PolyLine2d()

    PolyLine2d(Polygon2d, Boolean)

    Declaration
    public PolyLine2d(Polygon2d copy, bool bDuplicateFirstLast)
    Parameters
    Type Name Description
    Polygon2d copy
    Boolean bDuplicateFirstLast

    PolyLine2d(PolyLine2d)

    Declaration
    public PolyLine2d(PolyLine2d copy)
    Parameters
    Type Name Description
    PolyLine2d copy

    PolyLine2d(Vector2d[])

    Declaration
    public PolyLine2d(Vector2d[] v)
    Parameters
    Type Name Description
    Vector2d[] v

    PolyLine2d(VectorArray2d)

    Declaration
    public PolyLine2d(VectorArray2d v)
    Parameters
    Type Name Description
    VectorArray2d v

    PolyLine2d(IEnumerable<Vector2d>)

    Declaration
    public PolyLine2d(IEnumerable<Vector2d> copy)
    Parameters
    Type Name Description
    IEnumerable<Vector2d> copy

    PolyLine2d(IList<Vector2d>)

    Declaration
    public PolyLine2d(IList<Vector2d> copy)
    Parameters
    Type Name Description
    IList<Vector2d> copy

    Fields

    Timestamp

    Declaration
    public int Timestamp
    Field Value
    Type Description
    Int32

    vertices

    Declaration
    protected List<Vector2d> vertices
    Field Value
    Type Description
    List<Vector2d>

    Properties

    ArcLength

    Declaration
    public double ArcLength { get; }
    Property Value
    Type Description
    Double

    Bounds

    Declaration
    public AxisAlignedBox2d Bounds { get; }
    Property Value
    Type Description
    AxisAlignedBox2d

    End

    Declaration
    public Vector2d End { get; }
    Property Value
    Type Description
    Vector2d

    Item[Int32]

    Declaration
    public Vector2d this[int key] { get; set; }
    Parameters
    Type Name Description
    Int32 key
    Property Value
    Type Description
    Vector2d

    Length

    Declaration
    [Obsolete("This method name is confusing. Will remove in future. Use ArcLength instead")]
    public double Length { get; }
    Property Value
    Type Description
    Double

    Start

    Declaration
    public Vector2d Start { get; }
    Property Value
    Type Description
    Vector2d

    VertexCount

    Declaration
    public int VertexCount { get; }
    Property Value
    Type Description
    Int32

    Vertices

    Declaration
    public ReadOnlyCollection<Vector2d> Vertices { get; }
    Property Value
    Type Description
    ReadOnlyCollection<Vector2d>

    Methods

    AppendVertex(Vector2d)

    Declaration
    public virtual void AppendVertex(Vector2d v)
    Parameters
    Type Name Description
    Vector2d v

    AppendVertices(IEnumerable<Vector2d>)

    Declaration
    public virtual void AppendVertices(IEnumerable<Vector2d> v)
    Parameters
    Type Name Description
    IEnumerable<Vector2d> v

    DistanceSquared(Vector2d)

    Declaration
    public double DistanceSquared(Vector2d point)
    Parameters
    Type Name Description
    Vector2d point
    Returns
    Type Description
    Double

    GetBounds()

    Declaration
    public AxisAlignedBox2d GetBounds()
    Returns
    Type Description
    AxisAlignedBox2d

    GetEnumerator()

    Declaration
    public IEnumerator<Vector2d> GetEnumerator()
    Returns
    Type Description
    IEnumerator<Vector2d>

    GetNormal(Int32)

    Declaration
    public Vector2d GetNormal(int i)
    Parameters
    Type Name Description
    Int32 i
    Returns
    Type Description
    Vector2d

    GetTangent(Int32)

    Declaration
    public Vector2d GetTangent(int i)
    Parameters
    Type Name Description
    Int32 i
    Returns
    Type Description
    Vector2d

    MakeBoxSpiral(Vector2d, Double, Double)

    Declaration
    public static PolyLine2d MakeBoxSpiral(Vector2d center, double len, double spacing)
    Parameters
    Type Name Description
    Vector2d center
    Double len
    Double spacing
    Returns
    Type Description
    PolyLine2d

    Reverse()

    Declaration
    public virtual void Reverse()

    Segment(Int32)

    Declaration
    public Segment2d Segment(int iSegment)
    Parameters
    Type Name Description
    Int32 iSegment
    Returns
    Type Description
    Segment2d

    SegmentItr()

    Declaration
    public IEnumerable<Segment2d> SegmentItr()
    Returns
    Type Description
    IEnumerable<Segment2d>

    Simplify(Double, Double, Boolean)

    Declaration
    public virtual void Simplify(double clusterTol = 0.0001, double lineDeviationTol = 0.01, bool bSimplifyStraightLines = true)
    Parameters
    Type Name Description
    Double clusterTol
    Double lineDeviationTol
    Boolean bSimplifyStraightLines

    simplifyDP(Double, Vector2d[], Int32, Int32, Boolean[])

    Declaration
    protected static void simplifyDP(double tol, Vector2d[] v, int j, int k, bool[] mk)
    Parameters
    Type Name Description
    Double tol
    Vector2d[] v
    Int32 j
    Int32 k
    Boolean[] mk

    Transform(ITransform2)

    Declaration
    public PolyLine2d Transform(ITransform2 xform)
    Parameters
    Type Name Description
    ITransform2 xform
    Returns
    Type Description
    PolyLine2d

    Trim(Double)

    make polyline shorter by removing each_end_dist from start and end

    Declaration
    public bool Trim(double each_end_dist)
    Parameters
    Type Name Description
    Double each_end_dist
    Returns
    Type Description
    Boolean

    TrimEnd(Double)

    make polyline shorter by dist length, by removing from end

    Declaration
    public bool TrimEnd(double dist)
    Parameters
    Type Name Description
    Double dist
    Returns
    Type Description
    Boolean

    TrimStart(Double)

    make polyline shorter by dist length, by removing from front

    Declaration
    public bool TrimStart(double dist)
    Parameters
    Type Name Description
    Double dist
    Returns
    Type Description
    Boolean

    VertexOffset(Double)

    Offset each point by dist along vertex normal direction (ie tangent-perp)

    Declaration
    public void VertexOffset(double dist)
    Parameters
    Type Name Description
    Double dist

    Implements

    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    In This Article
    Back to top ViRGIS VR GIS