Polygon2D Class

 
Declaration
class Polygon2D : public Path2D, public NPDataBase
 
Description
This class stands for the polygon.
 
Namespace
NP::NestKernel::Data::Poly
 
Include File
Polygon2D.h
 
Operations implements NPData interface
      Clone                                     Clone the line item.
 
Other Operations
      IncludePolygon                      Whether include the other polygon.
      IntersectWith                          Whether this polygon intersects with other polygon.
      IsTouch                                    Whether the polygon vertex touches the polygon edge.
      GetCommonEdges               Get the common edges of two polygons.
      IsCCW                                      Whether the polygon is CCW.
      AdjustToCCW                        Adjust the polygon to CCW.
      GetArea                                    Get area of the polygon.
      GetLineList                              Get all edges of the polygon.
      GetRayMinLen                       Get the ray line length.
      Distance                                   The distance between the polygon and the point.
      Mirror                                         Mirror the polygon.
      GetGravityPt                           Get the gravity point of the polygon.
      GetPointPos                           Get the relationship between point and polygon.
      IsChimb                                   Whether the polygon is chimb.
 

Copyright © 2005-2013 by TAOSoft Corporation, All rights reserved.