Search Results for

    Show / Hide Table of Contents

    Class GeneralPolygon2d

    Inheritance
    Object
    GeneralPolygon2d
    Implements
    IDuplicatable<GeneralPolygon2d>
    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 GeneralPolygon2d : IDuplicatable<GeneralPolygon2d>

    Constructors

    GeneralPolygon2d()

    Declaration
    public GeneralPolygon2d()

    GeneralPolygon2d(GeneralPolygon2d)

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

    GeneralPolygon2d(Polygon2d)

    Declaration
    public GeneralPolygon2d(Polygon2d outer)
    Parameters
    Type Name Description
    Polygon2d outer

    Properties

    Area

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

    Bounds

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

    HoleArea

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

    Holes

    Declaration
    public ReadOnlyCollection<Polygon2d> Holes { get; }
    Property Value
    Type Description
    ReadOnlyCollection<Polygon2d>

    Outer

    Declaration
    public Polygon2d Outer { get; set; }
    Property Value
    Type Description
    Polygon2d

    Perimeter

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

    VertexCount

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

    Methods

    AddHole(Polygon2d, Boolean, Boolean)

    Declaration
    public void AddHole(Polygon2d hole, bool bCheckContainment = true, bool bCheckOrientation = true)
    Parameters
    Type Name Description
    Polygon2d hole
    Boolean bCheckContainment
    Boolean bCheckOrientation

    AllSegmentsItr()

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

    AllVerticesItr()

    Declaration
    public IEnumerable<Vector2d> AllVerticesItr()
    Returns
    Type Description
    IEnumerable<Vector2d>

    ClearHoles()

    Declaration
    public void ClearHoles()

    Contains(Polygon2d)

    Declaration
    public bool Contains(Polygon2d poly)
    Parameters
    Type Name Description
    Polygon2d poly
    Returns
    Type Description
    Boolean

    Contains(Segment2d)

    Checks that all points on a segment are within the area defined by the GeneralPolygon2d; holes are included in the calculation.

    Declaration
    public bool Contains(Segment2d seg)
    Parameters
    Type Name Description
    Segment2d seg
    Returns
    Type Description
    Boolean

    Contains(Vector2d)

    Declaration
    public bool Contains(Vector2d vTest)
    Parameters
    Type Name Description
    Vector2d vTest
    Returns
    Type Description
    Boolean

    DistanceSquared(Vector2d, out Int32, out Int32, out Double)

    Declaration
    public double DistanceSquared(Vector2d p, out int iHoleIndex, out int iNearSeg, out double fNearSegT)
    Parameters
    Type Name Description
    Vector2d p
    Int32 iHoleIndex
    Int32 iNearSeg
    Double fNearSegT
    Returns
    Type Description
    Double

    Duplicate()

    Declaration
    public virtual GeneralPolygon2d Duplicate()
    Returns
    Type Description
    GeneralPolygon2d

    GetNormal(Int32, Double, Int32)

    Declaration
    public Vector2d GetNormal(int iSegment, double segT, int iHoleIndex = -1)
    Parameters
    Type Name Description
    Int32 iSegment
    Double segT
    Int32 iHoleIndex
    Returns
    Type Description
    Vector2d

    Intersects(Polygon2d)

    Declaration
    public bool Intersects(Polygon2d poly)
    Parameters
    Type Name Description
    Polygon2d poly
    Returns
    Type Description
    Boolean

    PointAt(Int32, Double, Int32)

    Declaration
    public Vector2d PointAt(int iSegment, double fSegT, int iHoleIndex = -1)
    Parameters
    Type Name Description
    Int32 iSegment
    Double fSegT
    Int32 iHoleIndex
    Returns
    Type Description
    Vector2d

    Reverse()

    Declaration
    public void Reverse()

    Rotate(Matrix2d, Vector2d)

    Declaration
    public void Rotate(Matrix2d rotation, Vector2d origin)
    Parameters
    Type Name Description
    Matrix2d rotation
    Vector2d origin

    Scale(Vector2d, Vector2d)

    Declaration
    public void Scale(Vector2d scale, Vector2d origin)
    Parameters
    Type Name Description
    Vector2d scale
    Vector2d origin

    Segment(Int32, Int32)

    Declaration
    public Segment2d Segment(int iSegment, int iHoleIndex = -1)
    Parameters
    Type Name Description
    Int32 iSegment
    Int32 iHoleIndex
    Returns
    Type Description
    Segment2d

    Simplify(Double, Double, Boolean)

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

    Transform(Func<Vector2d, Vector2d>)

    Declaration
    public void Transform(Func<Vector2d, Vector2d> transformF)
    Parameters
    Type Name Description
    Func<Vector2d, Vector2d> transformF

    Translate(Vector2d)

    Declaration
    public void Translate(Vector2d translate)
    Parameters
    Type Name Description
    Vector2d translate

    Implements

    IDuplicatable<T>
    In This Article
    Back to top ViRGIS VR GIS