Class GeneralPolygon2d
Inheritance
GeneralPolygon2d
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
GeneralPolygon2d(Polygon2d)
Declaration
public GeneralPolygon2d(Polygon2d outer)
Parameters
Properties
Area
Declaration
public double Area { get; }
Property Value
Bounds
Declaration
public AxisAlignedBox2d Bounds { get; }
Property Value
HoleArea
Declaration
public double HoleArea { get; }
Property Value
Holes
Declaration
public ReadOnlyCollection<Polygon2d> Holes { get; }
Property Value
Type |
Description |
ReadOnlyCollection<Polygon2d> |
|
Outer
Declaration
public Polygon2d Outer { get; set; }
Property Value
Perimeter
Declaration
public double Perimeter { get; }
Property Value
VertexCount
Declaration
public int VertexCount { get; }
Property Value
Methods
AddHole(Polygon2d, Boolean, Boolean)
Declaration
public void AddHole(Polygon2d hole, bool bCheckContainment = true, bool bCheckOrientation = true)
Parameters
AllSegmentsItr()
Declaration
public IEnumerable<Segment2d> AllSegmentsItr()
Returns
AllVerticesItr()
Declaration
public IEnumerable<Vector2d> AllVerticesItr()
Returns
ClearHoles()
Declaration
Contains(Polygon2d)
Declaration
public bool Contains(Polygon2d poly)
Parameters
Returns
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
Returns
Contains(Vector2d)
Declaration
public bool Contains(Vector2d vTest)
Parameters
Returns
DistanceSquared(Vector2d, out Int32, out Int32, out Double)
Declaration
public double DistanceSquared(Vector2d p, out int iHoleIndex, out int iNearSeg, out double fNearSegT)
Parameters
Returns
Duplicate()
Declaration
public virtual GeneralPolygon2d Duplicate()
Returns
GetNormal(Int32, Double, Int32)
Declaration
public Vector2d GetNormal(int iSegment, double segT, int iHoleIndex = -1)
Parameters
Returns
Intersects(Polygon2d)
Declaration
public bool Intersects(Polygon2d poly)
Parameters
Returns
PointAt(Int32, Double, Int32)
Declaration
public Vector2d PointAt(int iSegment, double fSegT, int iHoleIndex = -1)
Parameters
Returns
Reverse()
Declaration
Rotate(Matrix2d, Vector2d)
Declaration
public void Rotate(Matrix2d rotation, Vector2d origin)
Parameters
Scale(Vector2d, Vector2d)
Declaration
public void Scale(Vector2d scale, Vector2d origin)
Parameters
Segment(Int32, Int32)
Declaration
public Segment2d Segment(int iSegment, int iHoleIndex = -1)
Parameters
Type |
Name |
Description |
Int32 |
iSegment |
|
Int32 |
iHoleIndex |
|
Returns
Simplify(Double, Double, Boolean)
Declaration
public void Simplify(double clusterTol = 0.0001, double lineDeviationTol = 0.01, bool bSimplifyStraightLines = true)
Parameters
Declaration
public void Transform(Func<Vector2d, Vector2d> transformF)
Parameters
Translate(Vector2d)
Declaration
public void Translate(Vector2d translate)
Parameters
Type |
Name |
Description |
Vector2d |
translate |
|
Implements